bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Patch for Diffutils 2.7


From: Timothy Kilbourn
Subject: Patch for Diffutils 2.7
Date: Mon, 11 Feb 2002 09:52:22 -0500 (EST)

Recently when comparing files in directories, I wanted diff to ignore the
files that weren't in both directories (*.o, *~, etc) without having to
figure out and specify what those files were. The following patch adds a
command line option --ignore-new-file that will not emit any output for a
file found in one directory but not the other. In addition, if this used
in conjunction with the -N or -P options, diff will display an error
message and then exit. I have found this to be useful and think it could
be included in the next release.

Changes:

2002-02-11  Timothy Kilbourn <address@hidden>

* diff.h: added EXTERN int ignore_new_file_flag

* diff.c (struct option): added "ignore-new-file"
(main): added case for "ignore-new-file" flag
        added fatal() for conflicting new file flags
(option_help): added line for --ignore-new-file
(compare_files): added check for ignore_new_file_flag before printing "Only in 
%s:"

Attachment: diff.patch
Description: Patch for Diffutils 2.7


reply via email to

[Prev in Thread] Current Thread [Next in Thread]