Versions in this module Expand all Collapse all v0 v0.5.0 Oct 29, 2026 Changes in this version + type Client struct + Binary string + func (c Client) DefaultBranch(ctx context.Context, r Repo) (string, error) + func (c Client) Dirty(ctx context.Context, top string) (bool, error) + func (c Client) MergeState(ctx context.Context, r Repo, branch string) (MergeState, error) + func (c Client) Top(ctx context.Context, dir string) (string, error) + func (c Client) Tracked(ctx context.Context, top, path string) (bool, error) + func (c Client) Worktree(ctx context.Context, dir string) (Worktree, error) + type MergeState struct + Ancestor bool + AtBase bool + Base string + Exists bool + IsBase bool + UpstreamGone bool + func (m MergeState) BaseName() string + func (m MergeState) Merged() bool + func (m MergeState) MergedForGC() bool + type Repo struct + Dir string + GitDir string + type Worktree struct + Branch string + CommonDir string + Top string + func (w Worktree) Linked() bool + func (w Worktree) MainTop() string + func (w Worktree) RepoName() string