Skip to main content

Module git

Module git 

Source

Structs§

FileChange

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 .git directory 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.