M Hickford <mirth.hickford@xxxxxxxxx> writes: > I frequently run `git status`. Sometimes HEAD is detached: > > HEAD detached at ea601b57e > > It would be neat to include ref names here, similar to git log: > > HEAD detached at ea601b57e (origin/main, origin/HEAD, main) > > This gives me more information before I create a new branch or switch branch. This has already moved away from the original "I want to know on which branch other worktrees are working" feature, but while we are expanding the edges... I wonder what you want to see when a detached HEAD deviated from its initial position (i.e., when we say "HEAD detached from", not "HEAD detached at", in "git status" output). Would we still want to show the "--decorate" list of existing refs for the original position? $ git checkout --detach master $ git status | head -n1 HEAD detached at 3bd955d269 $ git checkout --allow-empty -m empty $ git status | head -n1 HEAD detached from 3bd955d269 $ git reset --hard HEAD^ $ git status | head -n1 HEAD detached at 3bd955d269 If we add "(master)" after 3bd955d269 in the above illustration, I wonder if it makes it too misleading.