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

Full log


View this message in rfc822 format

From: L A Walsh <gnu <at> tlinx.org>
To: 33427 <at> debbugs.gnu.org
Subject: bug#33427: 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 209 days ago.

Previous Next


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