Structs§
Functions§
- count_
commits_ ahead - Count the number of commits HEAD is ahead of the base branch.
- create_
and_ checkout_ branch - Create and checkout a new branch.
- detect_
base_ branch - Detect the base branch for PR-style diffs.
- get_
branch_ changed_ files - Get the list of files changed between the base branch and HEAD.
- get_
branch_ diff - Get the unified diff between the base branch and HEAD (three-dot diff).
- get_
branch_ name - Get the current branch name.
- get_
changed_ files - Get the list of changed file paths.
- get_
combined_ diff - Get a display diff containing tracked changes plus patches for untracked files.
- get_
commits_ ahead - Get the commit messages between base and HEAD.
- get_
diff - Get the diff based on the configured source.
- get_
file_ changes - Get staged, unstaged, and untracked file state in one merged view.
- get_
git_ dir - Find the resolved
.gitdirectory for the given repository. - get_
global_ hooks_ path - Get the globally configured hooks path, with
~expanded when Git supports it. - get_
recent_ branch_ names - Get the N most recent branch names sorted by committer date.
- get_
recent_ commits - Get the N most recent commit summaries (oneline format).
- get_
repo_ root - Find the repository root from the current directory.
- get_
unstaged_ files - Get the list of unstaged file paths.
- git_
commit - Commit staged changes with the given message.
- set_
global_ hooks_ path - Configure the global hooks path.
- stage_
all - Stage all changes.
- stage_
path - Stage a single path.
- unset_
global_ hooks_ path - Remove the global hooks path, if one is configured.
- unstage_
path - Unstage a single path.