Fix the comment about the Name of a detached HEAD

Since 5dec080719, the Name of a detached HEAD is the full commit hash,
not the part of the DisplayName after "detached at".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Stefan HallerandClaude Opus 5.5 committed 2026-11-14 15:34:44 +01:00
1 parent cfb598fcdd
commit 748fe85bef
1 file changed
+1 -1
+1 -1
View File
@@ -9,7 +9,7 @@ import (
// duplicating this for now
type Branch struct {
Name string
// the displayname is something like '(HEAD detached at 123asdf)', whereas in that case the name would be '123asdf'
// the displayname is something like '(HEAD detached at 123asdf)', whereas in that case the name is the full hash of the commit
DisplayName string
// indicator of when the branch was last checked out e.g. '2d', '3m'
Recency string