60 Commits

Author SHA1 Message Date
Paul Eggert
6e68271b69 doc: fix menu typo
* doc/diffutils.texi (Comparing Three Files): Fix out-of-order menu.
Bug caught by Texinfo 5.0.
2013-03-23 00:26:39 -07:00
Jim Meyering
a0483cb2fc maint: update all copyright year number ranges
Run "make update-copyright".
2013-01-04 11:13:02 +01:00
Paul Eggert
42f6244ee0 * doc/diffutils.texi (cmp Options): Document -l format better. 2012-10-03 21:57:45 -07:00
Jim Meyering
5cb0eea638 maint: avoid new syntax-check failure due to @xref use
* doc/diffutils.texi: Change several "; @xref{..." to ".  @xref{...",
since @xref should start a sentence.
2012-08-28 10:59:03 +02:00
Paul Eggert
7f2f4bb365 diff: -N, --unidirectional-new-file now compare to "-" too
* NEWS: Document this.
* doc/diffutils.texi (Comparing Directories): Likewise.
Also, document that these options work at the top level.
* src/diff.c (compare_files): Treat EBADF like ENOENT, to handle
the case where "-" is closed.  Allow the other file to be
STDIN_FILENO, in case it's "-".
* tests/Makefile.am (TESTS): Add new-file.
* tests/new-file: New file.
2012-02-04 22:13:48 -08:00
Paul Eggert
62ca21c8c1 maint: quote 'like this' or "like this", not `like this'
This is in response to a recent change in the GNU coding standards,
which now suggest quoting 'like this' or "like this", instead of
`like this' or ``like this''.
* HACKING, NEWS, README, README-hacking, TODO, doc/diagmeet.note:
* doc/diffutils.texi, ms/config.bat, ms/config.site:
* src/analyze.c, src/cmp.c, src/context.c, src/diff.c:
* src/diff.h, src/diff3.c, src/dir.c, src/ifdef.c, src/io.c:
* src/sdiff.c, src/side.c, src/system.h, src/util.c:
* tests/help-version:
Quote 'like this' or "like this" in commentary.
* cfg.mk (old_NEWS_hash): Adjust to reflect new NEWS quoting.
* man/help2man: Update to 1.40.4 version, with quoting fixed as above.
* po/en.po: Remove translation involving `, as it's no longer needed.
* src/cmp.c (try_help, specify_ignore_initial, usage, main):
* src/diff.c (main, try_help, option_help_msgid, specify_value)
(compare_files):
* src/diff3.c (main, try_help, option_help_msgid, usage)
(read_diff):
* src/dir.c (compare_names):
* src/sdiff.c (try_help, usage, check_child_status, main):
* src/util.c (finish_output):
* tests/help-version:
Quote 'like this' in output.
2012-01-25 23:54:38 -08:00
Bruno Haible
e3324651cc New option --no-dereference.
* src/diff.h (no_dereference_symlinks): New variable.
* src/diff.c: Include xreadlink.h.
(longopts): Add --no-dereference option.
(main): Accept --no-dereference option.
(option_help_msgid): Mention the --no-dereference option.
(compare_files): If no_dereference_symlinks is true, use lstat()
instead of stat(). Compare symbolic links by comparing their values.
* bootstrap.conf (gnulib_modules): Add lstat, stat, xreadlink.
* doc/diffutils.texi (Comparing Directories, diff Options): Mention the
--no-dereference option.
* tests/no-dereference: New file.
* tests/Makefile.am (TESTS): Add it.
2012-01-08 21:26:27 +01:00
Jim Meyering
45110a7927 maint: update all copyright year number ranges
Run "make update-copyright".
2012-01-01 09:32:41 +01:00
Roland McGrath
86a40dd6ac diff, sdiff: new option --ignore-trailing-space (-Z)
Derived from Roland McGrath's patch (dated June 2004!) in:
http://lists.gnu.org/archive/html/bug-gnu-utils/2004-07/msg00000.html
* NEWS:
* doc/diffutils.texi (White Space, Blank Lines)
(sdiff Option Summary, diff Options, sdiff Options): Document -Z.
* src/diff.h (IGNORE_TRAILING_SPACE)
(IGNORE_TAB_EXPANSION_AND_TRAILING_SPACE): New constants, for -Z.
* src/diff.c (shortopts, longopts, main, option_help_msgid):
* src/sdiff.c (longopts, option_help_msgid, main):
* src/io.c (find_and_hash_each_line):
* src/util.c (lines_differ, analyze_hunk): Support -Z.
2011-08-14 22:09:21 -07:00
Tim Waugh
70febebfe5 diff: --ignore-file-name-case now applies at top level too
Derived from Tim Waugh's patch in:
http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00034.html
* NEWS, doc/diffutils.texi (diff Options): Document this.
* src/diff.c (compare_files): Implement this, by using
find_dir_file_pathname.
* src/diff.h (find_dir_file_pathname): New decl.
* src/dir.c: Include filenamecat.h.
(find_dir_file_pathname): New function.
2011-08-13 13:17:40 -07:00
Jim Meyering
789252980f doc: relax restriction on front-cover and back-cover texts
* doc/diffutils.texi (copying): Relax restriction on front-cover
and back-cover texts (just as m4 did here:
http://git.savannah.gnu.org/cgit/m4.git/commit?id=ee1e92ec).
Reported by Santiago Vila.  Fix suggested by Eric Blake.
2011-08-04 18:59:29 +02:00
Jim Meyering
df0a31f611 doc: rename diff.texi to diffutils.texi
This makes the .texi basename the same as the package name,
which is consistent with most other GNU packages.
* doc/diffutils.texi: Rename from...
* doc/diff.texi: ...removed.
* doc/Makefile.am (info_TEXINFOS): Reflect name change.
(diffutils_TEXINFOS): Likewise.
* cfg.mk (gendocs_options_): Remove this customization.  It is no
longer needed, now that the .texi name matches that of the package.
* man/Makefile.am ($(dist_man1_MANS)): Remove now-unnecessary sed
filter.
* README: Update references to diffutils.texi etc. here, too.
* .gitignore: Update here, too.
Suggested by Karl Berry.
2011-06-12 09:47:27 +02:00
Eric Blake
ffd622a281 docs: info should mention -L
* doc/diff.texi (diff Options): Document -L.
2011-03-18 15:28:44 -06:00
Jim Meyering
3f2d868741 doc: speak of the --test (-a) option, not "the -a or --test option"
Convert using this command:
perl -pi -e \
  's/(\@option{-.}) or (\@option{--.*?}) option/$2 ($1) option/' \
  doc/diff.texi
Then convert some more with this:
perl -pi -e \
    's/the (\@option{-.}) or (\@option{--.*?})$/the $2 ($1)/' \
  doc/diff.texi
Then convert more manually.

Suggested by Dan Jacobson
2011-02-15 10:21:34 +01:00
Jim Meyering
ce5367b6b3 maint: update copyright year ranges to include 2011
Run "make update-copyright", so "make syntax-check" works in 2011.
2011-01-03 22:13:35 +01:00
Jim Meyering
cadd497e27 maint: udpate GFDL license to 1.3
* doc/diff.texi: Update to use GFDL version 1.3.
2010-01-09 11:06:17 +01:00
Jim Meyering
6a44886e24 maint: update all FSF copyright year lists to include 2010
Use this command:
git ls-files |grep -vE '^(\..*|COPYING|gnulib)$' |xargs \
env UPDATE_COPYRIGHT_USE_INTERVALS=1 build-aux/update-copyright
2010-01-01 16:18:27 +01:00
Jim Meyering
9bfafb33a6 admin: update all copyright notices to include the year 2009 2009-11-11 22:18:37 +01:00
Jim Meyering
8cbaebf353 maint/sc: enable the space-TAB check
* doc/diagmeet.note: Use no TABs.
* ms/config.sed: Use TAB-space, not space-TAB in [].
* cfg.mk (local-checks-to-skip): Remove sc_space_tab.
2009-11-11 22:18:37 +01:00
Jim Meyering
036f253976 maint/sc: enable check for CVS keyword expansion
* doc/diff.texi: Remove $Id$.
* cfg.mk (local-checks-to-skip): Remove sc_prohibit_cvs_keyword.
2009-11-11 22:18:37 +01:00
Paul Eggert
8fd1173dd5 * doc/diff.texi: Update Back-Cover text to reflect new GNU wording. 2009-11-11 14:08:07 +01:00
Paul Eggert
e1820a76c0 * NEWS: New diff option --suppress-blank-empty (no longer -u default).
* doc/diff.texi (Detailed Unified): Trailing spaces are no longer
omitted.
(Trailing Blanks): New section.
(diff Options) Mention new option.
* src/diff.h (suppress_blank_entry): New decl.
* src/context.c (pr_unidiff_hunk): Support --suppress-blank-empty.
* src/util.c (print_1_line): Likewise.
* src/diff.c (longopts, main, option_help_msgid): Likewise.
(SUPPRESS_BLANK_EMPTY_OPTION): New constant.
2009-11-11 14:08:06 +01:00
Paul Eggert
e78fa51197 * doc/diff.texi (Copying This Manual): Adjust to new fdl.texi layout. 2009-11-11 14:08:06 +01:00
Paul Eggert
4805ca767a * doc/diff.texi (White Space): Note that newline always ends a line,
so -w doesn't ignore newline-related changes.  Problem reported by
David Kastrup.
2009-11-11 14:08:06 +01:00
Paul Eggert
43e4846f11 * COPYING: New file.
* AUTHORS: Update from GPLv2 to GPLv3.
* Makefile.am: Likewise.
* NEWS: Likewise.
* README: Likewise.
* README-hacking: Likewise.
* bootstrap: Likewise.
* bootstrap.conf: Likewise.
* configure.ac: Likewise.
* exgettext: Likewise.
* doc/Makefile.am: Likewise.
* lib/Makefile.am: Likewise.
* lib/cmpbuf.c: Likewise.
* lib/cmpbuf.h: Likewise.
* lib/prepargs.c: Likewise.
* m4/vararrays.m4: Likewise.
* man/Makefile.am: Likewise.
* ms/Makefile.am: Likewise.
* ms/README: Likewise.
* ms/config.bat: Likewise.
* ms/config.sed: Likewise.
* ms/config.site: Likewise.
* po/POTFILES.in: Likewise.
* src/Makefile.am: Likewise.
* src/analyze.c: Likewise.
* src/cmp.c: Likewise.
* src/context.c: Likewise.
* src/diff.c: Likewise.
* src/diff.h: Likewise.
* src/diff3.c: Likewise.
* src/dir.c: Likewise.
* src/ed.c: Likewise.
* src/io.c: Likewise.
* src/normal.c: Likewise.
* src/sdiff.c: Likewise.
* src/system.h: Likewise.
* src/util.c: Likewise.
2007-07-19 17:45:29 +00:00
Paul Eggert
b8c8ac122f * NEWS: Mention new sdiff aliases 1 and 2 for l and r.
* doc/diff.texi (Merge Commands): Likewise.
* src/sdiff.c (give_help): Give help for them.
(edit): Support them.
2007-06-06 23:40:16 +00:00
Paul Eggert
cbadd508f3 * doc/diff.texi (Detailed diff3 Normal): "range is a singleton" ->
"there is only one line", for clarity.  Suggested by Jerry Peek.
2007-04-12 00:15:15 +00:00
Paul Eggert
a204b37fb2 * doc/diff.texi (Detailed Unified): Don't output trailing white
space unless the input data has it.
* src/context.c (pr_unidiff_hunk): Likewise.
2006-09-05 22:57:09 +00:00
Paul Eggert
32625c5025 (cmp Options): -l also outputs the EOF message. 2006-07-26 06:20:59 +00:00
Paul Eggert
bcfeb9cb38 Switch from GFDL 1.1 to 1.2. 2006-05-07 04:06:50 +00:00
Paul Eggert
f5c7610983 Update FSF address. 2006-01-05 07:23:55 +00:00
Paul Eggert
91b8605708 * src/cmp.c: Don't include <setmode.h>.
(specify_ignore_initial): Reword to avoid gcc -W warnings.
(main): Use freopen instead of setmode, since freopen is in POSIX.
* src/context.c: Revert most 2004-09-01 changes.  Then:
(TIMESPEC_NS): Remove.  All uses replaced by
get_stat_mtime_ns.
Include stat-time.h, strftime.h.
(nstrtime): Remove decl.
* src/diff.c: Revert most 2004-09-01 changes.  Then:
Don't include <posixver.h>, <quotesys.h>, <setmode.h>.
Include <sh-quote.h>, <stat-time.h>, <timespec.h>.
All uses of quotesys replaced by sh-quote.
(main, compare_files):
Use freopen instead of setmode, since freopen is in POSIX.
(main): Don't complain about "diff -NUM'.
(main, set_mtime_to_now):
Adjust to stat-time.h macros when accessing nanoseconds.
* src/diff3.c: Include sh-quote.h rather than quotesys.  All uses
changed.
* src/dir.c (dir_read): excluded_filename renamed to
excluded_file_name.
* src/io.c: Don't include <setmode.h>.
(sip, read_files): Remove binary file stuff, leaving a FIXME behind.
A DOS expert needs to look at this.
* src/diff.c: Include sh-quote.h rather than quotesys.h.
All uses changed.
* src/system.h: Include verify.h.
(verify): Remove.  All uses changed to verify.h version.
Include <intprops.h>.
(TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.  Now uses
intprops.h versions.
(O_BINARY): New defns, taken from coreutils.
* src/util.c: Include sh-quote.h rather than quotesys.h.
All uses changed.
2006-01-05 07:08:23 +00:00
Paul Eggert
6243e2580a (dircategory): Change to "Text creation and
manipulation" from "GNU packages".
(Translations): New node.
(Overview): Improve quality of algorithm citations.
(Binary): -q doesn't exactly cause diff to assume files are binary.
(Normal): Place after Side by Side, since it's less important.
(Detailed Context, Detailed Unified, Detailed ed,
Detailed if-then-else, diff3 Hunks, Detailed diff3 Normal):
Place at end of menu.
(Detailed Unified): Mention that fractional timestamps are
omitted on hosts that don't support them.
Mention what happens when hunks contain just one line.
(Line Group Formats, Reject Names): Fix duplicate-word typos.
(Comparing Directories): Trailing white space and empty lines are
ignored in the -X file.
(diff Options): Add --strip-trailing-cr.
(Projects): gnu -> gvc@gnu.org.
2004-04-12 07:44:35 +00:00
Paul Eggert
0c3f74704f (Special Files): Document behavior of symlink loops. 2002-06-17 05:55:42 +00:00
Paul Eggert
6cce27301e Reword "@option{-f} and @option{--foo}" to "@option{-f} or @option{--foo}".
Use @acronym instead of @sc where appropriate.
(Specified Lines): Renamed from Specified Folding.
(Comparison, Blank Lines):
Clarify wordings for Blank Lines and Specified Lines nodes.
(Binary): Mention --verbose and --print-bytes.
(Tabs, sdiff Option Summary, diff Options):
New option --tabsize=COLUMNS.
2002-06-11 05:53:54 +00:00
Paul Eggert
e21807a095 Use new @copying directive. Work around incompatibility with Debian
install-info.
Put @contents first, not last, since Texinfo now suggests this.
Fix bug in -w documentation noted by Karl Berry.
Mention links for speedup.
New node "Speedups" for future speedups.
Just say "Index", not "Concept Index".
2002-04-05 20:37:31 +00:00
Paul Eggert
79a1780c88 Upgrade the description of `patch' to GNU patch 2.5.4, and revamp
the documentation accordingly.
2002-03-24 07:50:25 +00:00
Paul Eggert
3115963776 Bring back --horizon-lines. 2002-03-12 07:17:13 +00:00
Paul Eggert
8fe985d988 (Overview): byte != character.
(Detailed Context, Detailed Unified, Alternate Names, diff Options): Do not document diff -L.
(Comparing Directories): Do not document diff -P.
(Making Patches, diff Options): Likewise.
(diff Performance, sdiff Option Summary, diff Options, sdiff Options): Do not document diff -H.
(diff Performance, diff Options): Do not document --horizon-lines.
(cmp Options): Prefer -b to -c.
(cmp Options, diff Options, diff3 Options, sdiff Options): Put short
options next to the similar long options.
Document --help, and use the same wording for --verbose on all commands.
(diff3 Options): Fix typo in description of -E, which used wrongly used
"-e" instead of "-E".
(patch Options): Put short options next to the similar long options.
2002-03-12 06:34:28 +00:00
Paul Eggert
dbea9821b7 (AUTOMAKE_OPTIONS): Remove. 2002-03-11 08:00:47 +00:00
Paul Eggert
3561657de9 Add vr index.
Update copyright to 2002.
(Standards conformance): New chapter.
(Binary): Differing binary files are trouble unless the user asked for
brief output.
(Detailed Context): Prefer new time stamp format in discussion.
(Less Context): Likewise.  (Also use short option).
(Detailed Unified): Likewise.
(Alternate Names): Separate option from arg.
(Pagination): Prefer new time stamp format in discussion.
(Making Patches): Mention -U 2.
(diff Options): Deprecate -LINES, as POSIX 1003.1-2001 does not allow it.
2002-02-28 04:28:07 +00:00
Paul Eggert
aa71c5d0fd (diff Options): Remove DIFF_OPTIONS.
(Invoking diff3, Invoking sdiff): Remove DIFF_PROGRAM.
(diff3 Options, sdiff Options): Add --diff-program.
2001-12-24 00:53:12 +00:00
Paul Eggert
2eb762252f (cmp Options): In byte counts, a plain suffix (without any integer)
is assumed to modify the integer 1.  Index terms like "kibibyte".
Document plain "k".

(Reporting Bugs): Mention bug-report archive and test version
location.  Ask for "diff --version" in bug reports.
2001-12-24 00:06:54 +00:00
Paul Eggert
b272bbb9bb Add --no-ignore-file-name-case.
File name case sensitivity now affects file name exclusion.
Fix typos.
2001-12-11 09:19:39 +00:00
Paul Eggert
0b98d9a71f (direntry, Overview, Comparison, Binary, Invoking cmp): Use "byte"
rather than "character" when talking about cmp, since it compares
bytes, not character.
(Invoking cmp): New trailing operands FROM-SKIP and TO-SKIP.
-i or --ignore-initial now accepts FROM-SKIP:TO-SKIP.
New option -n or --bytes.
Count operands now may be in octal or hex, and may be followed by a
size multiplier.
2001-12-03 13:44:47 +00:00
Paul Eggert
f1d11746ca offsets -> indices for cmp 2001-11-25 06:31:33 +00:00
Paul Eggert
bcb8f7f352 Change direcategory from Utilities to GNU Packages.
Add individual utilities.
Switch to Free Documentation License.
@code -> @command
@samp -> @option
GNU -> @sc{gnu}
GNU patch version is 2.5.4.
Expand tabs to spaces, except when in an example that actually uses tabs.
Prefer @node with just one arg.
Document -E or --ignore-tab-expansion, --strip-trailing-cr, --ignore-file-name-case.
Regular expressions are now grep style, not Emacs style.
cmp's -c or --print-chars option is now -b or --print-bytes.
Time stamps now depend on LC_TIME.
-p now implies ^[[:alpha:]$_].
Flags now include ' and 0.
cmp -i is an alias for --ignore-initial
Document --from-file, --to-file.
Document DIFF_OPTIONS.
2001-11-25 05:54:30 +00:00
Paul Eggert
e48d1026c5 Initial revision 2001-11-23 08:05:29 +00:00
Paul Eggert
4ecee655a2 Add dircategory. 1998-09-15 22:34:53 +00:00
Paul Eggert
f1c356747f Document recent changes.
The patch doc still corresponds to patch 2.2, unfortunately.
Update GNU bug reporting address.  Omit Larry Wall's address;
it's obsolete and he's busy with perl.
1998-09-14 06:13:10 +00:00