-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
UPDATE Opened a PR #4892
If you set
[status]
renames=copies
The algo of rename detection is different than true
. Now it detects based on threshold (50%) of content similarity.
This trips up lazygit status view and staging gets broken
To Reproduce
Steps to reproduce the behavior:
git init
git config status.renames copies
echo foo > foo && git add . && git commit -m foo
cp foo foo2
mv foo foo1
- now
lazygit
and stage all files
Expected behavior
git status
shows this scenario as

So we should either support the copied
status or explicitly state we don't support renames=copies|copy
I guess.
Screenshots

Version info:
-
Run
lazygit --version
and paste the result here
commit=, build date=, build source=Homebrew, version=HEAD-0d5a410, os=darwin, arch=arm64, git version=2.51.0 -
Run
git --version
and paste the result here
git version 2.51.0
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working