public inbox for git@vger.kernel.org
 help / color / mirror / Atom feed
From: "Michal Suchánek" <msuchanek@suse.de>
To: git@vger.kernel.org
Subject: Rename detection fails on symlinked files
Date: Tue, 17 Jun 2025 13:13:57 +0200	[thread overview]
Message-ID: <aFFN9UHCspTjliMv@kitsune.suse.cz> (raw)

commit 5d51b10d8b5206ef5eeb9d214237b2ec2e0b789e (HEAD -> master)
Author: Michal Suchanek <msuchanek@suse.de>
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 <msuchanek@suse.de>
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

             reply	other threads:[~2025-06-17 11:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-17 11:13 Michal Suchánek [this message]
2025-06-17 17:44 ` Rename detection fails on symlinked files Elijah Newren
2025-06-17 18:23   ` Michal Suchánek
2025-09-25  7:39   ` Michal Suchánek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aFFN9UHCspTjliMv@kitsune.suse.cz \
    --to=msuchanek@suse.de \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox