pub fn is_detached(head: &SymbolicHead) -> boolExpand description
What:
Whether the invocation started on a detached HEAD.
Why:
A detached replay moves the shadow HEAD itself; a branch replay moves the branch.
In TS you’d write (pseudocode):
symbolicHead.kind === 'detached'