Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

detect renames #68

Open
DetachHead opened this issue Oct 19, 2022 · 1 comment
Open

detect renames #68

DetachHead opened this issue Oct 19, 2022 · 1 comment

Comments

@DetachHead
Copy link

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

@gliviu
Copy link
Owner

gliviu commented Oct 20, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants