You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
mnemonicPrefix = true in gitconfig breaks hunk staging #6096
Setting mnemonicPrefix = true under [diff] in gitconfig breaks staging hunks in the latest lazygit. Pressing space in the focused diff shows "Apply Patch" in the command log, but nothing gets staged. Discarding and unstaging are affected the same way.
To Reproduce
Steps to reproduce the behavior:
git config --global diff.mnemonicPrefix true
Modify a tracked file in any repo
In lazygit, select the file in the Files panel and press enter to focus its diff
Press space on a hunk or line
"Apply Patch" appears in the command log, but the change stays unstaged (git status confirms)
Expected behavior
The selected hunk or line is staged, the same as without diff.mnemonicPrefix.
@bo5o Thanks for reporting; fixed in #6099. I added a second PR that makes lazygit show an error popup in such a case rather than silently doing nothing (#6100); the second PR is stacked on the first, so if you want to test the fix (which I would appreciate), please use a build of #6100.
I noticed the same issue yesterday after updating, but couldn't quite describe what was wrong (or what caused it). I built #6100 locally just now and can confirm it seems to be fixed.
Activity
stefanhaller commentedon Oct 7, 2026
@bo5o Thanks for reporting; fixed in #6099. I added a second PR that makes lazygit show an error popup in such a case rather than silently doing nothing (#6100); the second PR is stacked on the first, so if you want to test the fix (which I would appreciate), please use a build of #6100.
arlopezg commentedon Oct 7, 2026
I noticed the same issue yesterday after updating, but couldn't quite describe what was wrong (or what caused it). I built #6100 locally just now and can confirm it seems to be fixed.
2026-10-07_21-27-13.mp4
2026-10-07_21-28-06.mp4
(env: Arch with mnemonicPrefix=true)
Fix staging diff hunks when the diff.mnemonic git config is true (#6099)