Skip to main content

Module git

Module git 

Source

Structs§

Worktree
A git worktree created for an issue pipeline.
WorktreeInfo
Info about an existing worktree from git worktree list.

Enums§

RebaseOutcome
Outcome of a rebase attempt.

Functions§

abort_rebase
Abort an in-progress rebase.
advance_local_branch
Advance the local branch ref to match origin/<branch> after a fetch.
changed_files_since
List files changed between a ref and HEAD.
clean_worktrees
Prune stale worktrees and return the count pruned.
commit_count_since
Count commits between a ref and HEAD.
conflicting_files
List files with unresolved merge conflicts (git index state).
create_worktree
Create a worktree for the given issue, branching from origin/<base_branch>.
default_branch
Get the default branch name (main or master).
delete_branch
Delete a local branch.
empty_commit
Create an empty commit (used to seed a branch before PR creation).
fetch_branch
Fetch a branch from origin to update the remote tracking ref.
files_with_conflict_markers
Check which files still contain conflict markers in their content.
force_push_branch
Force-push a branch to origin using --force-with-lease for safety.
head_sha
Get the current HEAD commit SHA.
list_merged_branches
List merged branches matching oven/*.
list_worktrees
List all worktrees in the repository.
push_branch
Push a branch to origin.
rebase_continue
Stage resolved conflict files and continue the in-progress rebase.
remove_worktree
Remove a worktree by path.
start_rebase
Start a rebase of the current branch onto the latest origin/<base_branch>.