GNU bug report logs - #33427
question or RFE on diff -r handling non-same files: show new/older when they "differ"

Previous Next

Package: diffutils;

Reported by: L A Walsh <gnu <at> tlinx.org>

Date: Mon, 19 Nov 2018 08:35:01 UTC

Severity: normal

To reply to this bug, email your comments to 33427 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-diffutils <at> gnu.org:
bug#33427; Package diffutils. (Mon, 19 Nov 2018 08:35:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to L A Walsh <gnu <at> tlinx.org>:
New bug report received and forwarded. Copy sent to bug-diffutils <at> gnu.org. (Mon, 19 Nov 2018 08:35:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: L A Walsh <gnu <at> tlinx.org>
To: "bug-diffutils <at> gnu.org" <bug-diffutils <at> gnu.org>
Subject: question or RFE on diff -r handling non-same files: show new/older
 when they "differ"
Date: Mon, 19 Nov 2018 00:34:05 -0800
(Reposting on correct list):
I was doing a "diff -rq ./src ./dev
to find areas of 'dev' that hadn't been rolled into src when I
realized some patches had gone into src directly.  Rather than
just telling me files "differed", it really would be useful,
sometimes, to know which of two files under a recursive
tree-diff was newer, older or had the same last mtime.

Is there a switch for this in diff that would accomplish this,
or does this fall into an RFE?

Thanks!
-linda

I.e. some examples:
currently:
 >  diff -rwq ~/{,w}bin -x RCS -x orig >/tmp/diffs
 1) Files bin/dtlog and wbin/dtlog differ
 2) Only in bin: dtlog.save

For case '1' maybe something like
 --when-diff=cmp-mtimes,show-relative
showing output like:
 file1-mtime < file2=mtime

or
 --when-same=cmp-owners
showing something like:
 file1-owner:  root      file2-owner: daemon





This bug report was last modified 6 years and 208 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.