dir-compare icon indicating copy to clipboard operation
dir-compare copied to clipboard

detect renames

Open DetachHead opened this issue 3 years ago • 1 comments

git diff is able to detect when a file has been renamed, based on a "similarity index":

diff --git a/a/a.txt b/b/b.txt
similarity index 85%
rename from a/a.txt
rename to b/b.txt
index b8ee8a7..8054674 100644
--- a/a/a.txt
+++ b/b/b.txt
@@ -1,3 +1,3 @@
 asdfdsfasdf
 gsdfgsdfgdsfgsdfg
-asdf
\ No newline at end of file
+asdf1
\ No newline at end of file

currently dir-compare treats all renames as a file "missing" on each side

DetachHead avatar Oct 19 '22 10:10 DetachHead

Similarity index is quite difficult to implement and I'm not able to allocate time for it right now.

gliviu avatar Oct 20 '22 22:10 gliviu