Structs§
- Commit
Info - A single git commit
- Diff
Entry - A single entry from a git diff operation.
Enums§
- Commit
Result - Result type for commit operations
- Diff
Status - Status of a file in a git diff.
- Push
Result - Result type for push operations
Functions§
- branch_
exists - Check if a branch exists (locally or remotely)
- checkout
- Checkout an existing branch
- commit_
and_ push_ pr_ fixes - Commit and optionally push PR review fixes
- create_
commit - Create a git commit with the given message
- current_
branch - Get the current branch name
- detect_
base_ branch - Detect the default base branch for the repository (main or master).
- ensure_
branch - Create and checkout a new branch, or checkout existing branch
- get_
branch_ commits - Get commits specific to the current branch (excluding merge commits).
- get_
commit_ diff - Get the diff for a specific commit.
- get_
current_ branch_ commits - Get commits specific to the current branch, auto-detecting the base branch.
- get_
diff_ since - Get file changes since a specific commit.
- get_
head_ commit - Get the full commit hash of HEAD.
- get_
merge_ base - Get the merge-base commit between the current branch and base branch.
- get_
merge_ base_ auto - Get the merge-base commit, auto-detecting the base branch.
- get_
new_ files_ since - Get newly created files since a specific commit.
- get_
uncommitted_ changes - Get uncommitted changes in the working directory.
- has_
uncommitted_ changes - Check if there are uncommitted changes (staged or unstaged)
- is_
clean - Check if working directory is clean (no uncommitted changes)
- is_
git_ repo - Check if current directory is a git repository
- latest_
commit_ short - Get the short hash of the latest commit (HEAD)
- push_
branch - Push the current branch to origin with upstream tracking
- stage_
all_ changes - Stage all changes (including new files, modifications, and deletions)