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.

Functions§

clean_worktrees
Prune stale worktrees and return the count pruned.
create_worktree
Create a worktree for the given issue, branching from 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).
list_merged_branches
List merged branches matching oven/*.
list_worktrees
List all worktrees in the repository.
push_branch
Push a branch to origin.
remove_worktree
Remove a worktree by path.