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

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: diffutils; Reported by: L A Walsh <gnu@HIDDEN>; dated Mon, 19 Nov 2018 08:35:01 UTC; Maintainer for diffutils is bug-diffutils@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 19 Nov 2018 08:34:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Nov 19 03:34:23 2018
Received: from localhost ([127.0.0.1]:59622 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1gOf0h-0004x5-0o
	for submit <at> debbugs.gnu.org; Mon, 19 Nov 2018 03:34:23 -0500
Received: from eggs.gnu.org ([208.118.235.92]:33371)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gnu@HIDDEN>) id 1gOf0f-0004wr-6y
 for submit <at> debbugs.gnu.org; Mon, 19 Nov 2018 03:34:21 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <gnu@HIDDEN>) id 1gOf0Z-0001it-F7
 for submit <at> debbugs.gnu.org; Mon, 19 Nov 2018 03:34:16 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:55432)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <gnu@HIDDEN>) id 1gOf0Z-0001il-CH
 for submit <at> debbugs.gnu.org; Mon, 19 Nov 2018 03:34:15 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:42968)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <gnu@HIDDEN>) id 1gOf0X-0007lj-Rx
 for bug-diffutils@HIDDEN; Mon, 19 Nov 2018 03:34:15 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <gnu@HIDDEN>) id 1gOf0T-0001fV-UC
 for bug-diffutils@HIDDEN; Mon, 19 Nov 2018 03:34:13 -0500
Received: from ishtar.tlinx.org ([173.164.175.65]:39996
 helo=Ishtar.sc.tlinx.org)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <gnu@HIDDEN>) id 1gOf0T-0001ek-Lb
 for bug-diffutils@HIDDEN; Mon, 19 Nov 2018 03:34:09 -0500
Received: from [192.168.3.12] (Athenae [192.168.3.12])
 by Ishtar.sc.tlinx.org (8.14.7/8.14.4/SuSE Linux 0.8) with ESMTP id
 wAJ8Y5xr046680
 for <bug-diffutils@HIDDEN>; Mon, 19 Nov 2018 00:34:07 -0800
Message-ID: <5BF2757D.90607@HIDDEN>
Date: Mon, 19 Nov 2018 00:34:05 -0800
From: L A Walsh <gnu@HIDDEN>
User-Agent: Thunderbird
MIME-Version: 1.0
To: "bug-diffutils@HIDDEN" <bug-diffutils@HIDDEN>
Subject: question or RFE on diff -r handling non-same files: show new/older
 when they "differ"
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no
 timestamps) [generic] [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -6.0 (------)

(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





Acknowledgement sent to L A Walsh <gnu@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-diffutils@HIDDEN. Full text available.
Report forwarded to bug-diffutils@HIDDEN:
bug#33427; Package diffutils. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

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