Structs§
- Branch
List Result - Result of listing branches for a repository
- Commit
Entry - A single commit entry from git log
- Diff
Summary - Diff statistics summary (files changed, insertions, deletions)
- GitCache
- Cache for git information with TTL
- GitInfo
- Git information for a working directory
- Graph
Commit - A single commit in the full graph (all branches)
- Graph
Data - Full graph data for lane-based visualization
- Remote
Tracking Info - Remote tracking info for a branch
- Worktree
Entry - Parsed worktree entry from
git worktree list --porcelain
Functions§
- ahead_
behind - Get ahead/behind counts relative to a base branch
- checkout_
branch - Checkout (switch to) a local branch
- create_
branch - Create a new local branch (without checking it out)
- delete_
branch - Delete a local branch
- extract_
claude_ worktree_ name - Extract worktree name from a
.claude/worktrees/{name}path segment - fetch_
branch_ diff_ stat - Fetch diff statistics between two explicit branches (not using HEAD)
- fetch_
diff_ stat - Fetch lightweight diff statistics between base branch and HEAD
- fetch_
full_ diff - Fetch full diff content between base branch and HEAD (on-demand)
- fetch_
remote - Fetch from a remote (default: origin)
- is_
safe_ git_ ref - Validate a git ref name (branch/tag) for safe use as a command argument
- is_
valid_ worktree_ name - Validate a worktree name (alphanumeric, hyphens, and underscores only, max 64 chars)
- list_
branches - List branches for a repository and detect the default branch
- list_
worktrees - List all worktrees for a repository by running
git worktree list --porcelain - log_
commits - Get commit log between two branches (base..branch)
- log_
graph - Get full commit graph across all branches for lane-based visualization
- merge_
branch - Merge a branch into the current branch
- pull
- Pull from upstream (fetch + merge)
- repo_
name_ from_ common_ dir - Extract repository name from a git common directory path
- strip_
git_ suffix - Strip
/.gitor/.git/suffix from a path to get the repository root