Skip to content

fix: show detached HEAD commits and drop the pseudo-branch - #89

Open
arumata wants to merge 2 commits into
the0807:mainfrom
arumata:fix/detached-head
Open

fix: show detached HEAD commits and drop the pseudo-branch#89
arumata wants to merge 2 commits into
the0807:mainfrom
arumata:fix/detached-head

Conversation

@arumata

@arumata arumata commented Sep 3, 2026

Copy link
Copy Markdown

Two detached-HEAD fixes:\n\n- #63 — a commit made in a detached HEAD was reachable from no branch/tag, so the log walk (started only from --glob=refs/heads/remotes/tags) omitted it from the graph. HEAD is now an explicit start point.\n- #65git branch -a --format lists the detached state as a pseudo-branch whose %(refname) is "(HEAD detached at <hash>)"; parseBranches surfaced it as a real branch, producing an invalid entry in the reflog ref filter that failed with 'unknown revision'.

git branch -a --format lists the detached state as a pseudo-branch whose
%(refname) is "(HEAD detached at <hash>)" instead of a refs/... path.
parseBranches surfaced it as a real local branch, which showed up in the
branch list and produced an invalid "(HEAD detached ...)" entry in the
reflog ref filter that failed with 'unknown revision' (issue the0807#65).
The log walk started only from --glob=refs/heads/remotes/tags, so a commit
made in a detached HEAD was reachable from no ref and never appeared in the
graph (issue the0807#63). Add HEAD itself as a start point in the unfiltered case.
@codecov

codecov Bot commented Sep 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant