Skip to main content

is_detached

Function is_detached 

Source
pub fn is_detached(head: &SymbolicHead) -> bool
Expand 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'