Describe the bug
UPDATE Opened a PR #4892
If you set
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
Describe the bug
UPDATE Opened a PR #4892
If you set
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 initgit config status.renames copiesecho foo > foo && git add . && git commit -m foocp foo foo2mv foo foo1lazygitand stage all filesExpected behavior
git statusshows this scenario asSo we should either support the
copiedstatus or explicitly state we don't supportrenames=copies|copyI guess.Screenshots
Version info:
Run
lazygit --versionand paste the result herecommit=, build date=, build source=Homebrew, version=HEAD-0d5a410, os=darwin, arch=arm64, git version=2.51.0
Run
git --versionand paste the result heregit version 2.51.0