home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / gnu / diff-2.3 / diff.info-3 < prev    next >
Encoding:
GNU Info File  |  1993-05-19  |  45.1 KB  |  1,266 lines

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