Subject: Rename detection fails on symlinked files

From: Michal Suchánek <[email-masked]>
Date: Tue, 17 Jun 2025 13:13:57 +0200

commit 5d51b10d8b5206ef5eeb9d214237b2ec2e0b789e (HEAD -> master)
Author: Michal Suchanek <[email-masked]>
Date:   Tue Jun 17 13:08:51 2025 +0200

    rename file

diff --git a/somefile b/somefile-renamed
similarity index 100%
rename from somefile
rename to somefile-renamed

ln -s somefile-renamed somefile
git add somefile
git commit --amend

commit 377d9bd045aed61c7be55482f3c98f8f9d04a33d (HEAD -> master)
Author: Michal Suchanek <[email-masked]>
Date:   Tue Jun 17 13:08:51 2025 +0200

    rename file

diff --git a/somefile b/somefile
deleted file mode 100644
index a53032b..0000000
Binary files a/somefile and /dev/null differ
diff --git a/somefile b/somefile
new file mode 120000
index 0000000..fc49048
--- /dev/null
+++ b/somefile
@@ -0,0 +1 @@
+somefile-renamed
\ No newline at end of file
diff --git a/somefile-renamed b/somefile-renamed
new file mode 100644
index 0000000..a53032b
Binary files /dev/null and b/somefile-renamed differ

Can the rename detection be fixed to detect symlinked files as well?

Thanks

Michal