mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-11-18 03:49:50 -06:00
In the branches panel, the row of a detached HEAD has an empty hash column if gui.showBranchCommitHash is on. In half or full screen mode, it also has no subject. The branch loader creates this row without the hash and subject of the commit. Ask git for the subject too. Show the Name of the row in the hash column; for a detached HEAD, the Name is the full hash. Leave the row's CommitHash empty. Otherwise, code that looks for branches at a commit would take the detached HEAD for a branch. For example, the checkout menu of the HEAD commit would offer to check it out. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>