Skip to main content

Module git

Module git 

Source
Expand description

Git-context reads — thin wrappers over git invoked against the resolved repository root. These always work (the repo always exists), so there is no degradation path here.

Structs§

Branch
One local branch.
Commit
One commit.
Diff
Diff summary for a branch against its base.

Functions§

branches
Lists local branches with head SHA, current flag, and worktree flag.
diff
Returns the diff of branch against base (default: the repo’s default branch, falling back to main), with a changed-files summary.
recent_commits
Returns up to limit recent commits on branch, newest first.