[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-diffutils] bug#18641: bug#18641: bug#18641: [PATCH] diff: Add --onl
From: |
Andreas Grünbacher |
Subject: |
[bug-diffutils] bug#18641: bug#18641: bug#18641: [PATCH] diff: Add --only=REGEX option to parse only files that match REGEX |
Date: |
Mon, 6 Oct 2014 16:15:35 +0200 |
2014-10-06 14:45 GMT+02:00 Eric Blake <address@hidden>:
> This feels like feature bloat. What's wrong with using 'find' to locate
> the subset of files you are interested in, then running diff on those files?
It's a bit messy to work around with find:
find a/ b/ -type f -printf "%P\0" | sort -zu | xargs -0 -n1 -i% diff
-Nu a/% b/%
Daniel's proposed feature makes this easier and more efficient (as diff won't
be invoked for each file), so it looks good to me.
Thanks,
Andreas