From 748fe85bef623024a0d3673df6370a904e455d98 Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Sat, 14 Nov 2026 13:28:23 +0100 Subject: [PATCH] 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 --- pkg/commands/models/branch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/commands/models/branch.go b/pkg/commands/models/branch.go index b01e5a7ef..176c8462d 100644 --- a/pkg/commands/models/branch.go +++ b/pkg/commands/models/branch.go @@ -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