Versions in this module Expand all Collapse all v0 v0.1.0 Feb 6, 2026 Changes in this version + type Commit struct + Author string + Hash string + Subject string + type Git struct + RepoDir string + func New(repoDir string) *Git + func (g *Git) BranchExists(branch string) bool + func (g *Git) CreateWorktree(branchName, worktreePath, baseBranch string) error + func (g *Git) CurrentBranch() (string, error) + func (g *Git) DeleteBranch(branchName string, force bool) error + func (g *Git) Fetch() error + func (g *Git) GetBranchCommit(branch string) (string, error) + func (g *Git) GetCommitCount(base, head string) (int, error) + func (g *Git) GetCommitsAhead(branch, target string) (int, error) + func (g *Git) GetCommitsBehind(branch, target string) (int, error) + func (g *Git) GetCommitsBetween(base, head string) ([]Commit, error) + func (g *Git) GetLastCommitMessage() (string, error) + func (g *Git) GetMainWorktree() (string, error) + func (g *Git) GetMergeBase(branch1, branch2 string) (string, error) + func (g *Git) GetPRTemplate() string + func (g *Git) GetRemote(name string) (string, error) + func (g *Git) GetRepoRoot() (string, error) + func (g *Git) HasDivergedFromOrigin(branch string) (bool, int, int, error) + func (g *Git) IsBranchMerged(branch, target string) (bool, error) + func (g *Git) IsLocalAheadOfOrigin(branch string) (bool, error) + func (g *Git) IsRebaseInProgress() (bool, error) + func (g *Git) ListWorktrees() ([]Worktree, error) + func (g *Git) PruneWorktrees() error + func (g *Git) Push(force bool) error + func (g *Git) PushForce() error + func (g *Git) PushSetUpstream() error + func (g *Git) Rebase(target string) error + func (g *Git) RebaseNonInteractive(target string) RebaseResult + func (g *Git) RebaseOntoNonInteractive(newBase, oldBase string) RebaseResult + func (g *Git) RemoteBranchExists(branch string) bool + func (g *Git) RemoveWorktree(worktreePath string, deleteBranch bool, branchName string) error + func (g *Git) ResetHard(ref string) error + func (g *Git) RunInteractive(args ...string) error + type RebaseResult struct + Error error + HasConflict bool + Success bool + type Worktree struct + Branch string + Path string