GNU bug report logs -
#29139
add --include for recursive searches
Previous Next
To reply to this bug, email your comments to 29139 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-diffutils <at> gnu.org
:
bug#29139
; Package
diffutils
.
(Fri, 03 Nov 2017 20:16:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Kevin Hunter Kesling <hunteke <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-diffutils <at> gnu.org
.
(Fri, 03 Nov 2017 20:16:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hello List,
I've been annoyed and confused when I'm on autopilot and attempting to
recursively compare directory trees. I've become accustomed to Grep's
--include functionality, and have more than a few times been surprised
(to the tune of "What? Unrecognized option??") that diff does not have
it. Well, with the attached patch, it now does.
Thanks to diff and grep both using gnulib, and the expressiveness of
add_exclude(), this was a much easier change that I was expecting when I
embarked on this a couple of hours ago.
Further, in the past hour since implementing it, this patch has already
saved me a ton of time (no thanks to an unfortunately slow VPN setup and
other beleaguered business requirements).
Use is exactly like with grep. For example:
$ diff --recursive --brief -w --include="*.c" --include="*.h" \
dir1/ \
dir2/
Would this be of use to the community?
Thanks,
Kevin
[diff-Add-include-command-line-option.patch (text/x-patch, attachment)]
Information forwarded
to
bug-diffutils <at> gnu.org
:
bug#29139
; Package
diffutils
.
(Fri, 03 Nov 2017 20:42:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 29139 <at> debbugs.gnu.org (full text, mbox):
Having used it in a couple of ways which at first appeared to work, I've
had a couple of use cases (of course, after I email the list) since
surprise me.
Please ignore or delete; this patch has some more baking to do ...
Sorry for the noise.
Kevin
This bug report was last modified 7 years and 280 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.