Versions in this module Expand all Collapse all v1 v1.1.0 Oct 25, 2026 Changes in this version type Repo + HooksPath string v1.0.2 Oct 25, 2026 Changes in this version type Repo + func (r *Repo) HasPatches(branch, sha string) bool v1.0.1 Oct 25, 2026 Changes in this version + func Ref(name string) string + func SamePath(a, b string) bool + type Commit struct + SHA string + Subject string + Time time.Time + type Error struct + Args []string + Err error + Stderr string + func (e *Error) Error() string + func (e *Error) Unwrap() error + type Repo struct + Dir string + func (r *Repo) At(dir string) *Repo + func (r *Repo) BranchExists(name string) bool + func (r *Repo) Checkout(branch string) error + func (r *Repo) CommitCount(base, head string) (int, error) + func (r *Repo) CommonDir() (string, error) + func (r *Repo) ConflictLines(file string) []int + func (r *Repo) ConflictedFiles() ([]string, error) + func (r *Repo) CreateBranch(name, start string) error + func (r *Repo) CurrentBranch() (string, error) + func (r *Repo) DefaultBranch(remote string) (string, error) + func (r *Repo) DefaultRemote() (string, error) + func (r *Repo) EnableRerere() error + func (r *Repo) Fetch(remote string) error + func (r *Repo) ForkPoint(base, branch string) (string, error) + func (r *Repo) GitDir() (string, error) + func (r *Repo) Includes(branch, sha string) bool + func (r *Repo) IsAncestor(a, b string) bool + func (r *Repo) IsClean() (bool, error) + func (r *Repo) LastCommit(rev string) (Commit, error) + func (r *Repo) MergeBase(a, b string) (string, error) + func (r *Repo) RebaseInProgress() (bool, error) + func (r *Repo) Remotes() ([]string, error) + func (r *Repo) RevParse(rev string) (string, error) + func (r *Repo) Run(args ...string) (string, error) + func (r *Repo) RunEnv(env []string, args ...string) (string, error) + func (r *Repo) SetBranchSHA(branch, sha string) error + func (r *Repo) TopLevel() (string, error) + func (r *Repo) ValidBranchName(name string) bool + func (r *Repo) WorktreeFor(branch string) (string, error) + func (r *Repo) Worktrees() ([]Worktree, error) + type Worktree struct + Branch string + Path string