mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-08-24 02:24:25 -05:00
A commit that moves an entire package elsewhere renames hundreds of files, and passing every one of their old paths can push the command past the length limit the OS imposes (~32k characters on Windows). Their common parent directory does just as well whenever everything it holds ends up in the diff anyway. Deciding that needs to consider every file of the diff, not only those on display, so the paths are now derived from the model rather than from the tree; a status filter must not make a directory look emptier than it is.