-
Notifications
You must be signed in to change notification settings - Fork 176
Description
Currently, when using icdiff -r
for comparison, if there are symbolic links within subdirectories, it recursively follows these symbolic links to compare the files and subdirectories they point to. I would like an option to control this behavior—specifically, to choose whether to compare only the symbolic links themselves when encountered, or to follow the symbolic links and compare the contents of the files they point to.
To illustrate the necessity of this mode, let's consider a more specific scenario: when two symbolic links actually point to different files, but their contents are identical, should we consider them as the same or different?
Here is the reproduction method:
cd ~
mkdir a
mkdir b
echo "xxx" > test-a.txt
echo "xxx" > test-b.txt
ln -s ~/test-a.txt a/test.txt
ln -s ~/test-b.txt b/test.txt
icdiff -r a/ b/
Currently, under the existing strategy, icdiff -r treats two symbolic links pointing to different locations but with identical file contents as being the same rather than showing a difference, which often goes against intuition.
Related: https:github.com//issues/177