mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-11-21 04:46:29 +03:00
Pathspec limiting happens before rename detection in git's tree diff, so filtering the diff to a directory hides the delete-side entry of a rename whose other end is outside that directory. Git then has nothing to pair up, and reports a file moved into the directory as an addition and one moved out of it as a deletion. Selecting a directory is supposed to filter the commit's diff down, never to change it, so both are wrong.