mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-11-21 04:46:29 +03:00
If diff.srcPrefix and diff.dstPrefix are set (git 2.45 and later), pressing space on a line in the focused main view does nothing. These configs change the diff of a commit too, so the other commands that read a path out of a diff go wrong as well. The configs replace the a/ and b/ in front of the paths of a diff with any string. We only know how to strip a/ and b/, so the paths we read out of the diff header don't name a file. We can't tell from the diff where such a prefix ends, so override the two configs along with diff.noprefix. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>