home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / info / diff.info-3 < prev    next >
Encoding:
GNU Info File  |  1995-07-29  |  44.6 KB  |  1,256 lines

  1. This is Info file diff.info, produced by Makeinfo-1.55 from the input
  2. file ./diff.texi.
  3.  
  4.    This file documents the the GNU `diff', `diff3', `sdiff', and `cmp'
  5. commands for showing the differences between text files and the `patch'
  6. command for using their output to update files.
  7.  
  8.    Copyright (C) 1992, 1993 Free Software Foundation, Inc.
  9.  
  10.    Permission is granted to make and distribute verbatim copies of this
  11. manual provided the copyright notice and this permission notice are
  12. preserved on all copies.
  13.  
  14.    Permission is granted to copy and distribute modified versions of
  15. this manual under the conditions for verbatim copying, provided that
  16. the entire resulting derived work is distributed under the terms of a
  17. permission notice identical to this one.
  18.  
  19.    Permission is granted to copy and distribute translations of this
  20. manual into another language, under the above conditions for modified
  21. versions, except that this permission notice may be stated in a
  22. translation approved by the Foundation.
  23.  
  24. 
  25. File: diff.info,  Node: diff Options,  Up: Invoking diff
  26.  
  27. Options to `diff'
  28. =================
  29.  
  30.    Below is a summary of all of the options that GNU `diff' accepts.
  31. Most options have two equivalent names, one of which is a single letter
  32. preceded by `-', and the other of which is a long name preceded by
  33. `--'.  Multiple single letter options (unless they take an argument)
  34. can be combined into a single command line word: `-ac' is equivalent to
  35. `-a -c'.  Long named options can be abbreviated to any unique prefix of
  36. their name.  Brackets ([ and ]) indicate that an option takes an
  37. optional argument.
  38.  
  39. `-LINES'
  40.      Show LINES (an integer) lines of context.  This option does not
  41.      specify an output format by itself; it has no effect unless it is
  42.      combined with `-c' (*note Context Format::.) or `-u' (*note
  43.      Unified Format::.).  This option is obsolete.
  44.  
  45. `-a'
  46.      Treat all files as text and compare them line-by-line, even if they
  47.      do not seem to be text.  *Note Binary::.
  48.  
  49. `-b'
  50.      Ignore changes in amount of blank and tab whitespace.  *Note
  51.      Whitespace::.
  52.  
  53. `-B'
  54.      Ignore changes that just insert or delete blank lines.  *Note
  55.      Blank Lines::.
  56.  
  57. `--brief'
  58.      Report only whether the files differ, not the details of the
  59.      differences.  *Note Brief::.
  60.  
  61. `-c'
  62.      Use the context output format.  *Note Context Format::.
  63.  
  64. `-C LINES'
  65. `--context[=LINES]'
  66.      Use the context output format, showing LINES (an integer) lines of
  67.      context, or three if LINES is not given.  *Note Context Format::.
  68.  
  69. `--changed-group-format=FORMAT'
  70.      Use FORMAT to output a line group containing differing lines from
  71.      both files in if-then-else format.  *Note Line Group Formats::.
  72.  
  73. `-d'
  74.      Change the algorithm perhaps find a smaller set of changes.  This
  75.      makes `diff' slower (sometimes much slower).  *Note diff
  76.      Performance::.
  77.  
  78. `-D NAME'
  79.      Make merged `#ifdef' format output, conditional on the preprocessor
  80.      macro NAME.  *Note If-then-else::.
  81.  
  82. `-e'
  83. `--ed'
  84.      Make output that is a valid `ed' script.  *Note ed Scripts::.
  85.  
  86. `--exclude=PATTERN'
  87.      When comparing directories, ignore files and subdirectories whose
  88.      basenames match PATTERN.  *Note Comparing Directories::.
  89.  
  90. `--exclude-from=FILE'
  91.      When comparing directories, ignore files and subdirectories whose
  92.      basenames match any pattern contained in FILE.  *Note Comparing
  93.      Directories::.
  94.  
  95. `--expand-tabs'
  96.      Expand tabs to spaces in the output, to preserve the alignment of
  97.      tabs in the input files.  *Note Tabs::.
  98.  
  99. `-f'
  100.      Make output that looks vaguely like an `ed' script but has changes
  101.      in the order they appear in the file.  *Note Forward ed::.
  102.  
  103. `-F REGEXP'
  104.      In context and unified format, for each hunk of differences, show
  105.      some of the last preceding line that matches REGEXP.  *Note
  106.      Specified Headings::.
  107.  
  108. `--forward-ed'
  109.      Make output that looks vaguely like an `ed' script but has changes
  110.      in the order they appear in the file.  *Note Forward ed::.
  111.  
  112. `-h'
  113.      This option currently has no effect; it is present for Unix
  114.      compatibility.
  115.  
  116. `-H'
  117.      Use heuristics to speed handling of large files that have numerous
  118.      scattered small changes.  *Note diff Performance::.
  119.  
  120. `-i'
  121.      Ignore changes in case; consider upper- and lower-case letters
  122.      equivalent.  *Note Case Folding::.
  123.  
  124. `-I REGEXP'
  125.      Ignore changes that just insert or delete lines that match REGEXP.
  126.      *Note Specified Folding::.
  127.  
  128. `--ifdef=NAME'
  129.      Make merged if-then-else output using FORMAT.  *Note
  130.      If-then-else::.
  131.  
  132. `--ignore-all-space'
  133.      Ignore whitespace when comparing lines.  *Note Whitespace::.
  134.  
  135. `--ignore-blank-lines'
  136.      Ignore changes that just insert or delete blank lines.  *Note
  137.      Blank Lines::.
  138.  
  139. `--ignore-case'
  140.      Ignore changes in case; consider upper- and lower-case to be the
  141.      same.  *Note Case Folding::.
  142.  
  143. `--ignore-matching-lines=REGEXP'
  144.      Ignore changes that just insert or delete lines that match REGEXP.
  145.      *Note Specified Folding::.
  146.  
  147. `--ignore-space-change'
  148.      Ignore changes in amount of blank and tab whitespace.  *Note
  149.      Whitespace::.
  150.  
  151. `--initial-tab'
  152.      Output a tab rather than a space before the text of a line in
  153.      normal or context format.  This causes the alignment of tabs in
  154.      the line to look normal.  *Note Tabs::.
  155.  
  156. `-l'
  157.      Pass the output through `pr' to paginate it.  *Note Pagination::.
  158.  
  159. `-L LABEL'
  160.      Use LABEL instead of the file name in the context format (*note
  161.      Context Format::.) and unified format (*note Unified Format::.)
  162.      headers.  *Note RCS::.
  163.  
  164. `--label=LABEL'
  165.      Use LABEL instead of the file name in the context format (*note
  166.      Context Format::.) and unified format (*note Unified Format::.)
  167.      headers.
  168.  
  169. `--left-column'
  170.      Print only the left column of two common lines in side by side
  171.      format.  *Note Side by Side Format::.
  172.  
  173. `--minimal'
  174.      Change the algorithm to perhaps find a smaller set of changes.
  175.      This makes `diff' slower (sometimes much slower).  *Note diff
  176.      Performance::.
  177.  
  178. `-n'
  179.      Output RCS-format diffs; like `-f' except that each command
  180.      specifies the number of lines affected.  *Note RCS::.
  181.  
  182. `-N'
  183. `--new-file'
  184.      In directory comparison, if a file is found in only one directory,
  185.      treat it as present but empty in the other directory.  *Note
  186.      Comparing Directories::.
  187.  
  188. `--new-group-format=FORMAT'
  189.      Use FORMAT to output a group of lines taken from just the second
  190.      file in if-then-else format.  *Note Line Group Formats::.
  191.  
  192. `--new-line-format=FORMAT'
  193.      Use FORMAT to output a line taken from just the second file in
  194.      if-then-else format.  *Note Line Formats::.
  195.  
  196. `--old-group-format=FORMAT'
  197.      Use FORMAT to output a group of lines taken from just the first
  198.      file in if-then-else format.  *Note Line Group Formats::.
  199.  
  200. `--old-line-format=FORMAT'
  201.      Use FORMAT to output a line taken from just the first file in
  202.      if-then-else format.  *Note Line Formats::.
  203.  
  204. `-p'
  205.      Show which C function each change is in.  *Note C Function
  206.      Headings::.
  207.  
  208. `-P'
  209.      When comparing directories, if a file appears only in the second
  210.      directory of the two, treat it as present but empty in the other.
  211.  
  212. `--paginate'
  213.      Pass the output through `pr' to paginate it.  *Note Pagination::.
  214.  
  215. `-q'
  216.      Report only whether the files differ, not the details of the
  217.      differences.  *Note Brief::.
  218.  
  219. `-r'
  220.      When comparing directories, recursively compare any subdirectories
  221.      found.  *Note Comparing Directories::.
  222.  
  223. `--rcs'
  224.      Output RCS-format diffs; like `-f' except that each command
  225.      specifies the number of lines affected.  *Note RCS::.
  226.  
  227. `--recursive'
  228.      When comparing directories, recursively compare any subdirectories
  229.      found.  *Note Comparing Directories::.
  230.  
  231. `--report-identical-files'
  232.      Report when two files are the same.  *Note Comparing Directories::.
  233.  
  234. `-s'
  235.      Report when two files are the same.  *Note Comparing Directories::.
  236.  
  237. `-S FILE'
  238.      When comparing directories, start with the file FILE.  This is
  239.      used for resuming an aborted comparison.  *Note Comparing
  240.      Directories::.
  241.  
  242. `--sdiff-merge-assist'
  243.      Print extra information to help `sdiff'.  `sdiff' uses this option
  244.      when it runs `diff'.  This option is not intended for users to use
  245.      directly.
  246.  
  247. `--show-c-function'
  248.      Show which C function each change is in.  *Note C Function
  249.      Headings::.
  250.  
  251. `--show-function-line=REGEXP'
  252.      In context and unified format, for each hunk of differences, show
  253.      some of the last preceding line that matches REGEXP.  *Note
  254.      Specified Headings::.
  255.  
  256. `--side-by-side'
  257.      Use the side by side output format.  *Note Side by Side Format::.
  258.  
  259. `--speed-large-files'
  260.      Use heuristics to speed handling of large files that have numerous
  261.      scattered small changes.  *Note diff Performance::.
  262.  
  263. `--starting-file=FILE'
  264.      When comparing directories, start with the file FILE.  This is
  265.      used for resuming an aborted comparison.  *Note Comparing
  266.      Directories::.
  267.  
  268. `--suppress-common-lines'
  269.      Do not print common lines in side by side format.  *Note Side by
  270.      Side Format::.
  271.  
  272. `-t'
  273.      Expand tabs to spaces in the output, to preserve the alignment of
  274.      tabs in the input files.  *Note Tabs::.
  275.  
  276. `-T'
  277.      Output a tab rather than a space before the text of a line in
  278.      normal or context format.  This causes the alignment of tabs in
  279.      the line to look normal.  *Note Tabs::.
  280.  
  281. `--text'
  282.      Treat all files as text and compare them line-by-line, even if they
  283.      do not appear to be text.  *Note Binary::.
  284.  
  285. `-u'
  286.      Use the unified output format.  *Note Unified Format::.
  287.  
  288. `--unchanged-group-format=FORMAT'
  289.      Use FORMAT to output a group of common lines taken from both files
  290.      in if-then-else format.  *Note Line Group Formats::.
  291.  
  292. `--unchanged-line-format=FORMAT'
  293.      Use FORMAT to output a line common to both files in if-then-else
  294.      format.  *Note Line Formats::.
  295.  
  296. `--unidirectional-new-file'
  297.      When comparing directories, if a file appears only in the second
  298.      directory of the two, treat it as present but empty in the other.
  299.      *Note Comparing Directories::.
  300.  
  301. `-U LINES'
  302. `--unified[=LINES]'
  303.      Use the unified output format, showing LINES (an integer) lines of
  304.      context, or three if LINES is not given.  *Note Unified Format::.
  305.  
  306. `-v'
  307. `--version'
  308.      Output the version number of `diff'.
  309.  
  310. `-w'
  311.      Ignore horizontal whitespace when comparing lines.  *Note
  312.      Whitespace::.
  313.  
  314. `-W COLUMNS'
  315. `--width=COLUMNS'
  316.      Use an output width of COLUMNS in side by side format.  *Note Side
  317.      by Side Format::.
  318.  
  319. `-x PATTERN'
  320.      When comparing directories, ignore files and subdirectories whose
  321.      basenames match PATTERN.  *Note Comparing Directories::.
  322.  
  323. `-X FILE'
  324.      When comparing directories, ignore files and subdirectories whose
  325.      basenames match any pattern contained in FILE.  *Note Comparing
  326.      Directories::.
  327.  
  328. `-y'
  329.      Use the side by side output format.  *Note Side by Side Format::.
  330.  
  331. 
  332. File: diff.info,  Node: Invoking diff3,  Next: Invoking patch,  Prev: Invoking diff,  Up: Top
  333.  
  334. Invoking `diff3'
  335. ****************
  336.  
  337.    The `diff3' command compares three files and outputs descriptions of
  338. their differences.  Its arguments are as follows:
  339.  
  340.      diff3 OPTIONS... MINE OLDER YOURS
  341.  
  342.    The files to compare are MINE, OLDER, and YOURS.  At most one of
  343. these three file names may be `-', which tells `diff3' to read the
  344. standard input for that file.
  345.  
  346.    An exit status of 0 means `diff3' was successful, 1 means some
  347. conflicts were found, and 2 means trouble.
  348.  
  349. * Menu:
  350.  
  351. * diff3 Options::        Summary of options to `diff3'.
  352.  
  353. 
  354. File: diff.info,  Node: diff3 Options,  Up: Invoking diff3
  355.  
  356. Options to `diff3'
  357. ==================
  358.  
  359.    Below is a summary of all of the options that GNU `diff3' accepts.
  360. Multiple single letter options (unless they take an argument) can be
  361. combined into a single command line argument.
  362.  
  363. `-a'
  364.      Treat all files as text and compare them line-by-line, even if they
  365.      do not appear to be text.  *Note Binary::.
  366.  
  367. `-A'
  368.      Incorporate all changes from OLDER to YOURS into MINE, surrounding
  369.      all conflicts with bracket lines.  *Note Marking Conflicts::.
  370.  
  371. `-e'
  372.      Generate an `ed' script that incorporates all the changes from
  373.      OLDER to YOURS into MINE.  *Note Which Changes::.
  374.  
  375. `-E'
  376.      Like `-e', except bracket lines from overlapping changes' first
  377.      and third files.  *Note Marking Conflicts::.  With `-e', an
  378.      overlapping change looks like this:
  379.  
  380.           <<<<<<< MINE
  381.           lines from MINE
  382.           =======
  383.           lines from YOURS
  384.           >>>>>>> YOURS
  385.  
  386. `--ed'
  387.      Generate an `ed' script that incorporates all the changes from
  388.      OLDER to YOURS into MINE.  *Note Which Changes::.
  389.  
  390. `--easy-only'
  391.      Like `-e', except output only the nonoverlapping changes.  *Note
  392.      Which Changes::.
  393.  
  394. `-i'
  395.      Generate `w' and `q' commands at the end of the `ed' script for
  396.      System V compatibility.  This option must be combined with one of
  397.      the `-AeExX3' options, and may not be combined with `-m'.  *Note
  398.      Saving the Changed File::.
  399.  
  400. `-L LABEL'
  401. `--label=LABEL'
  402.      Use the label LABEL for the brackets output by the `-A', `-E' and
  403.      `-X' options.  This option may be given up to three times, one for
  404.      each input file.  The default labels are the names of the input
  405.      files.  Thus `diff3 -L X -L Y -L Z -m A B C' acts like `diff3 -m A
  406.      B C', except that the output looks like it came from files named
  407.      `X', `Y' and `Z' rather than from files named `A', `B' and `C'.
  408.      *Note Marking Conflicts::.
  409.  
  410. `-m'
  411. `--merge'
  412.      Apply the edit script to the first file and send the result to
  413.      standard output.  Unlike piping the output from `diff3' to `ed',
  414.      this works even for binary files and incomplete lines.  `-A' is
  415.      assumed if no edit script option is specified.  *Note Bypassing
  416.      ed::.
  417.  
  418. `--overlap-only'
  419.      Like `-e', except output only the overlapping changes.  *Note
  420.      Which Changes::.
  421.  
  422. `--show-all'
  423.      Incorporate all unmerged changes from OLDER to YOURS into MINE,
  424.      surrounding all overlapping changes with bracket lines.  *Note
  425.      Marking Conflicts::.
  426.  
  427. `--show-overlap'
  428.      Like `-e', except bracket lines from overlapping changes' first
  429.      and third files.  *Note Marking Conflicts::.
  430.  
  431. `--text'
  432.      Treat all files as text and compare them line-by-line, even if they
  433.      do not appear to be text.  *Note Binary::.
  434.  
  435. `-v'
  436. `--version'
  437.      Output the version number of `diff3'.
  438.  
  439. `-x'
  440.      Like `-e', except output only the overlapping changes.  *Note
  441.      Which Changes::.
  442.  
  443. `-X'
  444.      Like `-E', except output only the overlapping changes.  In other
  445.      words, like `-x', except bracket changes as in `-E'.  *Note
  446.      Marking Conflicts::.
  447.  
  448. `-3'
  449.      Like `-e', except output only the nonoverlapping changes.  *Note
  450.      Which Changes::.
  451.  
  452. 
  453. File: diff.info,  Node: Invoking patch,  Next: Invoking sdiff,  Prev: Invoking diff3,  Up: Top
  454.  
  455. Invoking `patch'
  456. ****************
  457.  
  458.    Normally `patch' is invoked like this:
  459.  
  460.      patch <PATCHFILE
  461.  
  462.    The full format for invoking `patch' is:
  463.  
  464.      patch OPTIONS... [ORIGFILE [PATCHFILE]] [+ OPTIONS... [ORIGFILE]]...
  465.  
  466.    If you do not specify PATCHFILE, or if PATCHFILE is `-', `patch'
  467. reads the patch (that is, the `diff' output) from the standard input.
  468.  
  469.    You can specify one or more of the original files as ORIG arguments;
  470. each one and options for interpreting it is separated from the others
  471. with a `+'.  *Note Multiple Patches::, for more information.
  472.  
  473.    If you do not specify an input file on the command line, `patch'
  474. tries to figure out from the "leading text" (any text in the patch that
  475. comes before the `diff' output) which file to edit.  In the header of a
  476. context or unified diff, `patch' looks in lines beginning with `***',
  477. `---', or `+++'; among those, it chooses the shortest name of an
  478. existing file.  Otherwise, if there is an `Index:' line in the leading
  479. text, `patch' tries to use the file name from that line.  If `patch'
  480. cannot figure out the name of an existing file from the leading text,
  481. it prompts you for the name of the file to patch.
  482.  
  483.    If the input file does not exist or is read-only, and a suitable RCS
  484. or SCCS file exists, `patch' attempts to check out or get the file
  485. before proceeding.
  486.  
  487.    By default, `patch' replaces the original input file with the
  488. patched version, after renaming the original file into a backup file
  489. (*note Backups::., for a description of how `patch' names backup
  490. files).  You can also specify where to put the output with the `-o
  491. OUTPUT-FILE' or `--output=OUTPUT-FILE' option.
  492.  
  493. * Menu:
  494.  
  495. * patch Directories::    Changing directory and stripping paths.
  496. * Backups::        Backup file names.
  497. * Rejects::        Reject file names.
  498. * patch Options::    Summary table of options to `patch'.
  499.  
  500. 
  501. File: diff.info,  Node: patch Directories,  Next: Backups,  Up: Invoking patch
  502.  
  503. Applying Patches in Other Directories
  504. =====================================
  505.  
  506.    The `-d DIRECTORY' or `--directory=DIRECTORY' option to `patch'
  507. makes directory DIRECTORY the current directory for interpreting both
  508. file names in the patch file, and file names given as arguments to
  509. other options (such as `-B' and `-o').  For example, while in a news
  510. reading program, you can patch a file in the `/usr/src/emacs' directory
  511. directly from the article containing the patch like this:
  512.  
  513.      | patch -d /usr/src/emacs
  514.  
  515.    Sometimes the file names given in a patch contain leading
  516. directories, but you keep your files in a directory different from the
  517. one given in the patch.  In those cases, you can use the `-p[NUMBER]'
  518. or `--strip[=NUMBER]' option to set the file name strip count to
  519. NUMBER.  The strip count tells `patch' how many slashes, along with the
  520. directory names between them, to strip from the front of file names.
  521. `-p' with no NUMBER given is equivalent to `-p0'.  By default, `patch'
  522. strips off all leading paths, leaving just the base file names, except
  523. that when a file name given in the patch is a relative path and all of
  524. its leading directories already exist, `patch' does not strip off the
  525. leading path.  (A "relative" path is one that does not start with a
  526. slash.)
  527.  
  528.    `patch' looks for each file (after any slashes have been stripped)
  529. in the current directory, or if you used the `-d DIRECTORY' option, in
  530. that directory.
  531.  
  532.    For example, suppose the file name in the patch file is
  533. `/gnu/src/emacs/etc/NEWS'.  Using `-p' or `-p0' gives the entire file
  534. name unmodified, `-p1' gives `gnu/src/emacs/etc/NEWS' (no leading
  535. slash), `-p4' gives `etc/NEWS', and not specifying `-p' at all gives
  536. `NEWS'.
  537.  
  538. 
  539. File: diff.info,  Node: Backups,  Next: Rejects,  Prev: patch Directories,  Up: Invoking patch
  540.  
  541. Backup File Names
  542. =================
  543.  
  544.    Normally, `patch' renames an original input file into a backup file
  545. by appending to its name the extension `.orig', or `~' on systems that
  546. do not support long file names.  The `-b BACKUP-SUFFIX' or
  547. `--suffix=BACKUP-SUFFIX' option uses BACKUP-SUFFIX as the backup
  548. extension instead.
  549.  
  550.    Alternately, you can specify the extension for backup files with the
  551. `SIMPLE_BACKUP_SUFFIX' environment variable, which the options override.
  552.  
  553.    `patch' can also create numbered backup files the way GNU Emacs
  554. does.  With this method, instead of having a single backup of each file,
  555. `patch' makes a new backup file name each time it patches a file.  For
  556. example, the backups of a file named `sink' would be called,
  557. successively, `sink.~1~', `sink.~2~', `sink.~3~', etc.
  558.  
  559.    The `-V BACKUP-STYLE' or `--version-control=BACKUP-STYLE' option
  560. takes as an argument a method for creating backup file names.  You can
  561. alternately control the type of backups that `patch' makes with the
  562. `VERSION_CONTROL' environment variable, which the `-V' option
  563. overrides.  The value of the `VERSION_CONTROL' environment variable and
  564. the argument to the `-V' option are like the GNU Emacs
  565. `version-control' variable (*note emacs: Backups., for more information
  566. on backup versions in Emacs).  They also recognize synonyms that are
  567. more descriptive.  The valid values are listed below; unique
  568. abbreviations are acceptable.
  569.  
  570. `t'
  571. `numbered'
  572.      Always make numbered backups.
  573.  
  574. `nil'
  575. `existing'
  576.      Make numbered backups of files that already have them, simple
  577.      backups of the others.  This is the default.
  578.  
  579. `never'
  580. `simple'
  581.      Always make simple backups.
  582.  
  583.    Alternately, you can tell `patch' to prepend a prefix, such as a
  584. directory name, to produce backup file names.  The `-B BACKUP-PREFIX'
  585. or `--prefix=BACKUP-PREFIX' option makes backup files by prepending
  586. BACKUP-PREFIX to them.  If you use this option, `patch' ignores any
  587. `-b' option that you give.
  588.  
  589.    If the backup file already exists, `patch' creates a new backup file
  590. name by changing the first lowercase letter in the last component of
  591. the file name into uppercase.  If there are no more lowercase letters
  592. in the name, it removes the first character from the name.  It repeats
  593. this process until it comes up with a backup file name that does not
  594. already exist.
  595.  
  596.    If you specify the output file with the `-o' option, that file is
  597. the one that is backed up, not the input file.
  598.  
  599. 
  600. File: diff.info,  Node: Rejects,  Next: patch Options,  Prev: Backups,  Up: Invoking patch
  601.  
  602. Reject File Names
  603. =================
  604.  
  605.    The names for reject files (files containing patches that `patch'
  606. could not find a place to apply) are normally the name of the output
  607. file with `.rej' appended (or `#' on systems that do not support long
  608. file names).
  609.  
  610.    Alternatively, you can tell `patch' to place all of the rejected
  611. patches in a single file.  The `-r REJECT-FILE' or
  612. `--reject-file=REJECT-FILE' option uses REJECT-FILE as the reject file
  613. name.
  614.  
  615. 
  616. File: diff.info,  Node: patch Options,  Prev: Rejects,  Up: Invoking patch
  617.  
  618. Options to `patch'
  619. ==================
  620.  
  621.    Here is a summary of all of the options that `patch' accepts.  Older
  622. versions of `patch' do not accept long-named options or the `-t', `-E',
  623. or `-V' options.
  624.  
  625.    Multiple single-letter options that do not take an argument can be
  626. combined into a single command line argument (with only one dash).
  627. Brackets ([ and ]) indicate that an option takes an optional argument.
  628.  
  629. `-b BACKUP-SUFFIX'
  630.      Use BACKUP-SUFFIX as the backup extension instead of `.orig' or
  631.      `~'.  *Note Backups::.
  632.  
  633. `-B BACKUP-PREFIX'
  634.      Use BACKUP-PREFIX as a prefix to the backup file name.  If this
  635.      option is specified, any `-b' option is ignored.  *Note Backups::.
  636.  
  637. `--batch'
  638.      Do not ask any questions.  *Note patch Messages::.
  639.  
  640. `-c'
  641. `--context'
  642.      Interpret the patch file as a context diff.  *Note patch Input::.
  643.  
  644. `-d DIRECTORY'
  645. `--directory=DIRECTORY'
  646.      Makes directory DIRECTORY the current directory for interpreting
  647.      both file names in the patch file, and file names given as
  648.      arguments to other options.  *Note patch Directories::.
  649.  
  650. `-D NAME'
  651.      Make merged if-then-else output using FORMAT.  *Note
  652.      If-then-else::.
  653.  
  654. `--debug=NUMBER'
  655.      Set internal debugging flags.  Of interest only to `patch'
  656.      patchers.
  657.  
  658. `-e'
  659. `--ed'
  660.      Interpret the patch file as an `ed' script.  *Note patch Input::.
  661.  
  662. `-E'
  663.      Remove output files that are empty after the patches have been
  664.      applied.  *Note Empty Files::.
  665.  
  666. `-f'
  667.      Assume that the user knows exactly what he or she is doing, and do
  668.      not ask any questions.  *Note patch Messages::.
  669.  
  670. `-F LINES'
  671.      Set the maximum fuzz factor to LINES.  *Note Inexact::.
  672.  
  673. `--force'
  674.      Assume that the user knows exactly what he or she is doing, and do
  675.      not ask any questions.  *Note patch Messages::.
  676.  
  677. `--forward'
  678.      Ignore patches that `patch' thinks are reversed or already applied.
  679.      See also `-R'.  *Note Reversed Patches::.
  680.  
  681. `--fuzz=LINES'
  682.      Set the maximum fuzz factor to LINES.  *Note Inexact::.
  683.  
  684. `--ifdef=NAME'
  685.      Make merged if-then-else output using FORMAT.  *Note
  686.      If-then-else::.
  687.  
  688. `--ignore-whitespace'
  689. `-l'
  690.      Let any sequence of whitespace in the patch file match any
  691.      sequence of whitespace in the input file.  *Note Changed
  692.      Whitespace::.
  693.  
  694. `-n'
  695. `--normal'
  696.      Interpret the patch file as a normal diff.  *Note patch Input::.
  697.  
  698. `-N'
  699.      Ignore patches that `patch' thinks are reversed or already applied.
  700.      See also `-R'.  *Note Reversed Patches::.
  701.  
  702. `-o OUTPUT-FILE'
  703. `--output=OUTPUT-FILE'
  704.      Use OUTPUT-FILE as the output file name.  *Note patch Options::.
  705.  
  706. `-p[NUMBER]'
  707.      Set the file name strip count to NUMBER.  *Note patch
  708.      Directories::.
  709.  
  710. `--prefix=BACKUP-PREFIX'
  711.      Use BACKUP-PREFIX as a prefix to the backup file name.  If this
  712.      option is specified, any `-b' option is ignored.  *Note Backups::.
  713.  
  714. `--quiet'
  715.      Work silently unless an error occurs.  *Note patch Messages::.
  716.  
  717. `-r REJECT-FILE'
  718.      Use REJECT-FILE as the reject file name.  *Note Rejects::.
  719.  
  720. `-R'
  721.      Assume that this patch was created with the old and new files
  722.      swapped.  *Note Reversed Patches::.
  723.  
  724. `--reject-file=REJECT-FILE'
  725.      Use REJECT-FILE as the reject file name.  *Note Rejects::.
  726.  
  727. `--remove-empty-files'
  728.      Remove output files that are empty after the patches have been
  729.      applied.  *Note Empty Files::.
  730.  
  731. `--reverse'
  732.      Assume that this patch was created with the old and new files
  733.      swapped.  *Note Reversed Patches::.
  734.  
  735. `-s'
  736.      Work silently unless an error occurs.  *Note patch Messages::.
  737.  
  738. `-S'
  739.      Ignore this patch from the patch file, but continue looking for
  740.      the next patch in the file.  *Note Multiple Patches::.
  741.  
  742. `--silent'
  743.      Work silently unless an error occurs.  *Note patch Messages::.
  744.  
  745. `--skip'
  746.      Ignore this patch from the patch file, but continue looking for
  747.      the next patch in the file.  *Note Multiple Patches::.
  748.  
  749. `--strip[=NUMBER]'
  750.      Set the file name strip count to NUMBER.  *Note patch
  751.      Directories::.
  752.  
  753. `--suffix=BACKUP-SUFFIX'
  754.      Use BACKUP-SUFFIX as the backup extension instead of `.orig' or
  755.      `~'.  *Note Backups::.
  756.  
  757. `-t'
  758.      Do not ask any questions.  *Note patch Messages::.
  759.  
  760. `-u'
  761. `--unified'
  762.      Interpret the patch file as a unified diff.  *Note patch Input::.
  763.  
  764. `-v'
  765.      Output the revision header and patch level of `patch'.
  766.  
  767. `-V BACKUP-STYLE'
  768.      Select the kind of backups to make.  *Note Backups::.
  769.  
  770. `--version'
  771.      Output the revision header and patch level of `patch'.
  772.  
  773. `--version=control=BACKUP-STYLE'
  774.      Select the kind of backups to make.  *Note Backups::.
  775.  
  776. `-x NUMBER'
  777.      Set internal debugging flags.  Of interest only to `patch'
  778.      patchers.
  779.  
  780. 
  781. File: diff.info,  Node: Invoking sdiff,  Next: Incomplete Lines,  Prev: Invoking patch,  Up: Top
  782.  
  783. Invoking `sdiff'
  784. ****************
  785.  
  786.    The `sdiff' command merges two files and interactively outputs the
  787. results.  Its arguments are as follows:
  788.  
  789.      sdiff -o OUTFILE OPTIONS... FROM-FILE TO-FILE
  790.  
  791.    This merges FROM-FILE with TO-FILE, with output to OUTFILE.  If
  792. FROM-FILE is a directory and TO-FILE is not, `sdiff' compares the file
  793. in FROM-FILE whose file name is that of TO-FILE, and vice versa.
  794. fROM-FILE and TO-FILE may not both be directories.
  795.  
  796.    `sdiff' options begin with `-', so normally FROM-FILE and TO-FILE
  797. may not begin with `-'.  However, `--' as an argument by itself treats
  798. the remaining arguments as file names even if they begin with `-'.  You
  799. may not use `-' as an input file.
  800.  
  801.    An exit status of 0 means no differences were found, 1 means some
  802. differences were found, and 2 means trouble.
  803.  
  804.    `sdiff' without `-o' (or `--output') produces a side-by-side
  805. difference.  This usage is obsolete; use `diff --side-by-side' instead.
  806.  
  807. * Menu:
  808.  
  809. * sdiff Options::    Summary of options to `diff'.
  810.  
  811. 
  812. File: diff.info,  Node: sdiff Options,  Up: Invoking sdiff
  813.  
  814. Options to `sdiff'
  815. ==================
  816.  
  817.    Below is a summary of all of the options that GNU `sdiff' accepts.
  818. Each option has two equivalent names, one of which is a single letter
  819. preceded by `-', and the other of which is a long name preceded by
  820. `--'.  Multiple single letter options (unless they take an argument)
  821. can be combined into a single command line argument.  Long named
  822. options can be abbreviated to any unique prefix of their name.
  823.  
  824. `-a'
  825.      Treat all files as text and compare them line-by-line, even if they
  826.      do not appear to be text.  *Note Binary::.
  827.  
  828. `-b'
  829.      Ignore changes in amount of blank and tab whitespace.  *Note
  830.      Whitespace::.
  831.  
  832. `-B'
  833.      Ignore changes that just insert or delete blank lines.  *Note
  834.      Blank Lines::.
  835.  
  836. `-d'
  837.      Change the algorithm to perhaps find a smaller set of changes.
  838.      This makes `sdiff' slower (sometimes much slower).  *Note diff
  839.      Performance::.
  840.  
  841. `-H'
  842.      Use heuristics to speed handling of large files that have numerous
  843.      scattered small changes.  *Note diff Performance::.
  844.  
  845. `--expand-tabs'
  846.      Expand tabs to spaces in the output, to preserve the alignment of
  847.      tabs in the input files.  *Note Tabs::.
  848.  
  849. `-i'
  850.      Ignore changes in case; consider upper- and lower-case to be the
  851.      same.  *Note Case Folding::.
  852.  
  853. `-I REGEXP'
  854.      Ignore changes that just insert or delete lines that match REGEXP.
  855.      *Note Specified Folding::.
  856.  
  857. `--ignore-all-space'
  858.      Ignore whitespace when comparing lines.  *Note Whitespace::.
  859.  
  860. `--ignore-blank-lines'
  861.      Ignore changes that just insert or delete blank lines.  *Note
  862.      Blank Lines::.
  863.  
  864. `--ignore-case'
  865.      Ignore changes in case; consider upper- and lower-case to be the
  866.      same.  *Note Case Folding::.
  867.  
  868. `--ignore-matching-lines=REGEXP'
  869.      Ignore changes that just insert or delete lines that match REGEXP.
  870.      *Note Specified Folding::.
  871.  
  872. `--ignore-space-change'
  873.      Ignore changes in amount of blank and tab whitespace.  *Note
  874.      Whitespace::.
  875.  
  876. `-l'
  877. `--left-column'
  878.      Print only the left column of two common lines.  *Note Side by
  879.      Side Format::.
  880.  
  881. `--minimal'
  882.      Change the algorithm to perhaps find a smaller set of changes.
  883.      This makes `sdiff' slower (sometimes much slower).  *Note diff
  884.      Performance::.
  885.  
  886. `-o FILE'
  887. `--output=FILE'
  888.      Put merged output into FILE.  This option is required for merging.
  889.  
  890. `-s'
  891. `--suppress-common-lines'
  892.      Do not print common lines.  *Note Side by Side Format::.
  893.  
  894. `--speed-large-files'
  895.      Use heuristics to speed handling of large files that have numerous
  896.      scattered small changes.  *Note diff Performance::.
  897.  
  898. `-t'
  899.      Expand tabs to spaces in the output, to preserve the alignment of
  900.      tabs in the input files.  *Note Tabs::.
  901.  
  902. `--text'
  903.      Treat all files as text and compare them line-by-line, even if they
  904.      do not appear to be text.  *Note Binary::.
  905.  
  906. `-v'
  907. `--version'
  908.      Output the version number of `sdiff'.
  909.  
  910. `-w COLUMNS'
  911. `--width=COLUMNS'
  912.      Use an output width of COLUMNS.  *Note Side by Side Format::.
  913.      Note that for historical reasons, this option is `-W' in `diff',
  914.      `-w' in `sdiff'.
  915.  
  916. `-W'
  917.      Ignore horizontal whitespace when comparing lines.  *Note
  918.      Whitespace::.  Note that for historical reasons, this option is
  919.      `-w' in `diff', `-W' in `sdiff'.
  920.  
  921. 
  922. File: diff.info,  Node: Incomplete Lines,  Next: Projects,  Prev: Invoking sdiff,  Up: Top
  923.  
  924. Incomplete Lines
  925. ****************
  926.  
  927.    When an input file ends in a non-newline character, its last line is
  928. called an "incomplete line" because its last character is not a
  929. newline.  All other lines are called "full lines" and end in a newline
  930. character.  Incomplete lines do not match full lines unless differences
  931. in blank lines are ignored (*note Blank Lines::.).
  932.  
  933.    An incomplete line is normally distinguished on output from a full
  934. line by a following line that starts with `\'.  However, the RCS format
  935. (*note RCS::.) outputs the incomplete line as-is, without any trailing
  936. newline or following line.  The side by side format normally represents
  937. incomplete lines as-is, but in some cases uses a `\' or `/' gutter
  938. marker; *Note Side by Side::.  The if-then-else line format preserves a
  939. line's incompleteness with `%L', and discards the newline with `%l';
  940. *Note Line Formats::.  Finally, with the `ed' and forward `ed' output
  941. formats (*note Output Formats::.) `diff' cannot represent an incomplete
  942. line, so it pretends there was a newline and reports an error.
  943.  
  944.    For example, suppose `F' and `G' are one-byte files that contain
  945. just `f' and `g', respectively.  Then `diff F G' outputs
  946.  
  947.      1c1
  948.      < f
  949.      \ No newline at end of file
  950.      ---
  951.      > g
  952.      \ No newline at end of file
  953.  
  954. (The exact message may differ in non-English locales.) `diff -n F G'
  955. outputs the following without a trailing newline:
  956.  
  957.      d1 1
  958.      a1 1
  959.      g
  960.  
  961.    `diff -e F G' reports two errors and outputs the following:
  962.  
  963.      1c
  964.      g
  965.      .
  966.  
  967. 
  968. File: diff.info,  Node: Projects,  Next: Concept Index,  Prev: Incomplete Lines,  Up: Top
  969.  
  970. Future Projects
  971. ***************
  972.  
  973.    Here are some ideas for improving GNU `diff' and `patch'.  The GNU
  974. project has identified some improvements as potential programming
  975. projects for volunteers.  You can also help by reporting any bugs that
  976. you find.
  977.  
  978.    If you are a programmer and would like to contribute something to the
  979. GNU project, please consider volunteering for one of these projects.  If
  980. you are seriously contemplating work, please write to
  981. `gnu@prep.ai.mit.edu' to coordinate with other volunteers.
  982.  
  983. * Menu:
  984.  
  985. * Shortcomings::    Suggested projects for improvements.
  986. * Bugs::        Reporting bugs.
  987.  
  988. 
  989. File: diff.info,  Node: Shortcomings,  Next: Bugs,  Up: Projects
  990.  
  991. Suggested Projects for Improving GNU `diff' and `patch'
  992. =======================================================
  993.  
  994.    One should be able to use GNU `diff' to generate a patch from any
  995. pair of directory trees, and given the patch and a copy of one such
  996. tree, use `patch' to generate a faithful copy of the other.
  997. Unfortunately, some changes to directory trees cannot be expressed using
  998. current patch formats; also, `patch' does not handle some of the
  999. existing formats.  These shortcomings motivate the following suggested
  1000. projects.
  1001.  
  1002. * Menu:
  1003.  
  1004. * Changing Structure::    Handling changes to the directory structure.
  1005. * Special Files::    Handling symbolic links, device special files, etc.
  1006. * Unusual File Names::    Handling file names that contain unusual characters.
  1007. * Arbitrary Limits::    Patching non-text files.
  1008. * Large Files::        Handling files that do not fit in memory.
  1009. * Ignoring Changes::    Ignoring certain changes while showing others.
  1010.  
  1011. 
  1012. File: diff.info,  Node: Changing Structure,  Next: Special Files,  Up: Shortcomings
  1013.  
  1014. Handling Changes to the Directory Structure
  1015. -------------------------------------------
  1016.  
  1017.    `diff' and `patch' do not handle some changes to directory
  1018. structure.  For example, suppose one directory tree contains a directory
  1019. named `D' with some subsidiary files, and another contains a file with
  1020. the same name `D'.  `diff -r' does not output enough information for
  1021. `patch' to transform the the directory subtree into the file.
  1022.  
  1023.    There should be a way to specify that a file has been deleted without
  1024. having to include its entire contents in the patch file.  There should
  1025. also be a way to tell `patch' that a file was renamed, even if there is
  1026. no way for `diff' to generate such information.
  1027.  
  1028.    These problems can be fixed by extending the `diff' output format to
  1029. represent changes in directory structure, and extending `patch' to
  1030. understand these extensions.
  1031.  
  1032. 
  1033. File: diff.info,  Node: Special Files,  Next: Unusual File Names,  Prev: Changing Structure,  Up: Shortcomings
  1034.  
  1035. Files that are Neither Directories Nor Regular Files
  1036. ----------------------------------------------------
  1037.  
  1038.    Some files are neither directories nor regular files: they are
  1039. unusual files like symbolic links, device special files, named pipes,
  1040. and sockets.  Currently, `diff' treats all these files like regular
  1041. files.  However, this means that `patch' cannot represent changes to
  1042. such files.  For example, if you change which file a symbolic link
  1043. points to, `diff' outputs the difference between the two files, instead
  1044. of the change to the symbolic link.
  1045.  
  1046.    `diff' should optionally report changes to special files specially,
  1047. and `patch' should be extended to understand these extensions.
  1048.  
  1049. 
  1050. File: diff.info,  Node: Unusual File Names,  Next: Arbitrary Limits,  Prev: Special Files,  Up: Shortcomings
  1051.  
  1052. File Names that Contain Unusual Characters
  1053. ------------------------------------------
  1054.  
  1055.    When a file name contains an unusual character like a newline or
  1056. whitespace, `diff -r' generates a patch that `patch' cannot parse.  The
  1057. problem is with format of `diff' output, not just with `patch', because
  1058. with odd enough file names one can cause `diff' to generate a patch
  1059. that is syntactically correct but patches the wrong files.  The format
  1060. of `diff' output should be extended to handle all possible file names.
  1061.  
  1062. 
  1063. File: diff.info,  Node: Arbitrary Limits,  Next: Large Files,  Prev: Unusual File Names,  Up: Shortcomings
  1064.  
  1065. Arbitrary Limits
  1066. ----------------
  1067.  
  1068.    GNU `diff' can analyze files with arbitrarily long lines and files
  1069. that end in incomplete lines.  However, `patch' cannot patch such
  1070. files.  The `patch' internal limits on line lengths should be removed,
  1071. and `patch' should be extended to parse `diff' reports of incomplete
  1072. lines.
  1073.  
  1074. 
  1075. File: diff.info,  Node: Large Files,  Next: Ignoring Changes,  Prev: Arbitrary Limits,  Up: Shortcomings
  1076.  
  1077. Handling Files that Do Not Fit in Memory
  1078. ----------------------------------------
  1079.  
  1080.    `diff' operates by reading both files into memory.  This method
  1081. fails if the files are too large, and `diff' should have a fallback.
  1082.  
  1083.    One way to do this is to scan the files sequentially to compute hash
  1084. codes of the lines and put the lines in equivalence classes based only
  1085. on hash code.  Then compare the files normally.  This does produce some
  1086. false matches.
  1087.  
  1088.    Then scan the two files sequentially again, checking each match to
  1089. see whether it is real.  When a match is not real, mark both the
  1090. "matching" lines as changed.  Then build an edit script as usual.
  1091.  
  1092.    The output routines would have to be changed to scan the files
  1093. sequentially looking for the text to print.
  1094.  
  1095. 
  1096. File: diff.info,  Node: Ignoring Changes,  Prev: Large Files,  Up: Shortcomings
  1097.  
  1098. Ignoring Certain Changes
  1099. ------------------------
  1100.  
  1101.    It would be nice to have a feature for specifying two strings, one in
  1102. FROM-FILE and one in TO-FILE, which should be considered to match.
  1103. Thus, if the two strings are `foo' and `bar', then if two lines differ
  1104. only in that `foo' in file 1 corresponds to `bar' in file 2, the lines
  1105. are treated as identical.
  1106.  
  1107.    It is not clear how general this feature can or should be, or what
  1108. syntax should be used for it.
  1109.  
  1110. 
  1111. File: diff.info,  Node: Bugs,  Prev: Shortcomings,  Up: Projects
  1112.  
  1113. Reporting Bugs
  1114. ==============
  1115.  
  1116.    If you think you have found a bug in GNU `cmp', `diff', `diff3',
  1117. `sdiff', or `patch', please report it by electronic mail to
  1118. `bug-gnu-utils@prep.ai.mit.edu'.  Send as precise a description of the
  1119. problem as you can, including sample input files that produce the bug,
  1120. if applicable.
  1121.  
  1122.    Because Larry Wall has not released a new version of `patch' since
  1123. mid 1988 and the GNU version of `patch' has been changed since then,
  1124. please send bug reports for `patch' by electronic mail to both
  1125. `bug-gnu-utils@prep.ai.mit.edu' and `lwall@netlabs.com'.
  1126.  
  1127. 
  1128. File: diff.info,  Node: Concept Index,  Prev: Projects,  Up: Top
  1129.  
  1130. Concept Index
  1131. *************
  1132.  
  1133. * Menu:
  1134.  
  1135. * cmp invocation:                       Invoking cmp.
  1136. * cmp options:                          cmp Options.
  1137. * diff3 hunks:                          diff3 Hunks.
  1138. * diff3 invocation:                     Invoking diff3.
  1139. * diff3 options:                        diff3 Options.
  1140. * diff3 sample input:                   Sample diff3 Input.
  1141. * diff invocation:                      Invoking diff.
  1142. * diff options:                         diff Options.
  1143. * diff sample input:                    Sample diff Input.
  1144. * ed script output format:              ed Scripts.
  1145. * ifdef output format:                  If-then-else.
  1146. * patch input format:                   patch Input.
  1147. * patch invocation:                     Invoking patch.
  1148. * patch messages and questions:         patch Messages.
  1149. * patch options:                        patch Options.
  1150. * sdiff invocation:                     Invoking sdiff.
  1151. * sdiff options:                        sdiff Options.
  1152. * sdiff output format:                  sdiff Option Summary.
  1153. * ! output format:                      Context.
  1154. * +- output format:                     Unified Format.
  1155. * <<<<<<< for marking conflicts:        Marking Conflicts.
  1156. * < output format:                      Normal.
  1157. * aligning tabstops:                    Tabs.
  1158. * alternate file names:                 Alternate Names.
  1159. * backup file names:                    Backups.
  1160. * binary file diff:                     Binary.
  1161. * binary file patching:                 Arbitrary Limits.
  1162. * blank and tab difference suppression: Whitespace.
  1163. * blank line difference suppression:    Blank Lines.
  1164. * brief difference reports:             Brief.
  1165. * bug reports:                          Bugs.
  1166. * C function headings:                  C Function Headings.
  1167. * C if-then-else output format:         If-then-else.
  1168. * case difference suppression:          Case Folding.
  1169. * columnar output:                      Side by Side.
  1170. * comparing three files:                Comparing Three Files.
  1171. * conflict:                             diff3 Merging.
  1172. * conflict marking:                     Marking Conflicts.
  1173. * context output format:                Context.
  1174. * diagnostics from patch:               patch Messages.
  1175. * diff merging:                         Interactive Merging.
  1176. * directories and patch:                patch Directories.
  1177. * directory structure shanges:          Changing Structure.
  1178. * empty files, removing:                Empty Files.
  1179. * file name alternates:                 Alternate Names.
  1180. * file names with unusual characters:   Unusual File Names.
  1181. * format of diff3 output:               Comparing Three Files.
  1182. * format of diff output:                Output Formats.
  1183. * formats for if-then-else line groups: Line Group Formats.
  1184. * forward ed script output format:      Forward ed.
  1185. * full lines:                           Incomplete Lines.
  1186. * function headings, C:                 C Function Headings.
  1187. * fuzz factor when patching:            Inexact.
  1188. * headings:                             Sections.
  1189. * hunks:                                Hunks.
  1190. * hunks for diff3:                      diff3 Hunks.
  1191. * if-then-else output format:           If-then-else.
  1192. * imperfect patch application:          Imperfect.
  1193. * incomplete line merging:              Merging Incomplete Lines.
  1194. * incomplete lines:                     Incomplete Lines.
  1195. * inexact patches:                      Inexact.
  1196. * interactive merging:                  Interactive Merging.
  1197. * introduction:                         Comparison.
  1198. * invoking cmp:                         Invoking cmp.
  1199. * invoking diff3:                       Invoking diff3.
  1200. * invoking diff:                        Invoking diff.
  1201. * invoking patch:                       Invoking patch.
  1202. * invoking sdiff:                       Invoking sdiff.
  1203. * large files:                          Large Files.
  1204. * line formats:                         Line Formats.
  1205. * line group formats:                   Line Group Formats.
  1206. * merge commands:                       Merge Commands.
  1207. * merged diff3 format:                  Bypassing ed.
  1208. * merged output format:                 If-then-else.
  1209. * merging from a common ancestor:       diff3 Merging.
  1210. * merging interactively:                Merge Commands.
  1211. * messages from patch:                  patch Messages.
  1212. * multiple patches:                     Multiple Patches.
  1213. * newline treatment by diff:            Incomplete Lines.
  1214. * normal output format:                 Normal.
  1215. * options for cmp:                      cmp Options.
  1216. * options for diff3:                    diff3 Options.
  1217. * options for diff:                     diff Options.
  1218. * options for patch:                    patch Options.
  1219. * options for sdiff:                    sdiff Options.
  1220. * output formats:                       Output Formats.
  1221. * overlap:                              diff3 Merging.
  1222. * overlapping change, selection of:     Which Changes.
  1223. * overview of diff and patch:           Overview.
  1224. * paginating diff output:               Pagination.
  1225. * patch making tips:                    Making Patches.
  1226. * patching directories:                 patch Directories.
  1227. * performance of diff:                  diff Performance.
  1228. * projects for directories:             Shortcomings.
  1229. * RCS script output format:             RCS.
  1230. * regular expression matching headings: Specified Headings.
  1231. * regular expression suppression:       Specified Folding.
  1232. * reject file names:                    Rejects.
  1233. * removing empty files:                 Empty Files.
  1234. * reporting bugs:                       Bugs.
  1235. * reversed patches:                     Reversed Patches.
  1236. * sample input for diff3:               Sample diff3 Input.
  1237. * sample input for diff:                Sample diff Input.
  1238. * script output formats:                Scripts.
  1239. * section headings:                     Sections.
  1240. * side by side:                         Side by Side.
  1241. * side by side format:                  Side by Side Format.
  1242. * special files:                        Special Files.
  1243. * specified headings:                   Specified Headings.
  1244. * summarizing which files differ:       Brief.
  1245. * System V diff3 compatibility:         Saving the Changed File.
  1246. * tab and blank difference suppression: Whitespace.
  1247. * tabstop alignment:                    Tabs.
  1248. * text versus binary diff:              Binary.
  1249. * tips for patch making:                Making Patches.
  1250. * two-column output:                    Side by Side.
  1251. * unified output format:                Unified Format.
  1252. * unmerged change:                      Which Changes.
  1253. * whitespace in patches:                Changed Whitespace.
  1254.  
  1255.  
  1256.