Skip to main content

origin_base

Function origin_base 

Source
fn origin_base(repo: &Path) -> Option<String>
Expand description

The ref claude’s --worktree cuts a fresh branch from: origin/<default-branch> as the repo’s origin/HEAD names it.

None when the repo names no remote default, or when the symref names a ref the remote no longer carries: a start point git cannot resolve would refuse the whole resume, so the caller falls back to the local HEAD.