GNU bug report logs - #20279
With -r, option to avoid duplicate differences due to relative symbolic links

Previous Next

Package: diffutils;

Reported by: Vincent Lefevre <vincent <at> vinc17.net>

Date: Wed, 8 Apr 2015 09:47:01 UTC

Severity: normal

To reply to this bug, email your comments to 20279 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#20279; Package diffutils. (Wed, 08 Apr 2015 09:47:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Vincent Lefevre <vincent <at> vinc17.net>:
New bug report received and forwarded. Copy sent to bug-diffutils <at> gnu.org. (Wed, 08 Apr 2015 09:47:02 GMT) Full text and rfc822 format available.

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

From: Vincent Lefevre <vincent <at> vinc17.net>
To: bug-diffutils <at> gnu.org
Subject: With -r, option to avoid duplicate differences due to relative
 symbolic links
Date: Wed, 8 Apr 2015 11:45:51 +0200
When using "diff -r", an additional option to avoid duplicate
differences due to symbolic links would be useful. For instance,
in directories "a" and "b" to be diff'ed, one may have:

  file
  symlink -> file

If "file" changes in directory "a", then "diff -r a b" will report a
difference for "file", but also for "symlink" as a consequence. This
is a bit annoying when reviewing a diff output.

An option, possibly named --ignore-identical-links, could be added to
detect something like that, e.g. in the following way:

1. Detect whether the object to be diff'ed in directories "a" and "b"
   are both symbolic links with the same link value.

2. [Optional] If (1) is satisfied, also detect whether the value is
   a relative symbolic link that is local to the directory.

If (1) is satisfied (and optionally (2)), then do not attempt to diff
the objects.

In practice, just doing (1) would be OK for me.

Note: I can't use --no-dereference because I still want to be able to
compare objects where one is a symbolic link and the other one is a
regular file or a directory.

-- 
Vincent Lefèvre <vincent <at> vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)




This bug report was last modified 10 years and 71 days ago.

Previous Next


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