Versions in this module Expand all Collapse all v0 v0.1.0 Sep 6, 2026 Changes in this version + var ErrTimeout = errors.New("git: timed out") + type Exec struct + Bin string + func (e Exec) Commit(ctx context.Context, worktreeDir, message string, paths []string, ...) (string, error) + func (e Exec) CommitTime(ctx context.Context, dir, sha string) (time.Time, error) + func (e Exec) DeleteRemoteBranch(ctx context.Context, cloneDir, remote, branch string) error + func (e Exec) DiffNameOnly(ctx context.Context, worktreeDir, fromRev, toRev string) ([]string, error) + func (e Exec) FetchBranch(ctx context.Context, dir, remote, branch string) (string, bool, error) + func (e Exec) HashObject(ctx context.Context, worktreeDir string, content []byte) (string, error) + func (e Exec) IsAncestor(ctx context.Context, dir, ancestor, descendant string) (bool, error) + func (e Exec) IsShallow(ctx context.Context, dir string) (bool, error) + func (e Exec) Log(ctx context.Context, worktreeDir, revRange string) ([]string, error) + func (e Exec) LsRemoteBranch(ctx context.Context, cloneDir, remote, branch string) (string, bool, error) + func (e Exec) LsTreeBlob(ctx context.Context, worktreeDir, rev, path string) (string, bool, error) + func (e Exec) ObjectExists(ctx context.Context, dir, sha string) (bool, error) + func (e Exec) Push(ctx context.Context, worktreeDir, remote, branch string) error + func (e Exec) PushHeadTo(ctx context.Context, worktreeDir, remote, remoteBranch string) error + func (e Exec) RemoveWorktree(ctx context.Context, cloneDir, worktreeDir string) error + func (e Exec) RevParse(ctx context.Context, worktreeDir, rev string) (string, bool, error) + func (e Exec) Worktree(ctx context.Context, cloneDir, worktreeDir, branch, base string) error + func (e Exec) WorktreeAtRef(ctx context.Context, cloneDir, dir, ref string) error + func (e Exec) WorktreeBranch(ctx context.Context, cloneDir, worktreeDir string) (string, bool, error) + type Git interface + Commit func(ctx context.Context, worktreeDir, message string, paths []string, ...) (sha string, err error) + CommitTime func(ctx context.Context, dir, sha string) (time.Time, error) + DeleteRemoteBranch func(ctx context.Context, cloneDir, remote, branch string) error + DiffNameOnly func(ctx context.Context, worktreeDir, fromRev, toRev string) (paths []string, err error) + FetchBranch func(ctx context.Context, dir, remote, branch string) (sha string, ok bool, err error) + HashObject func(ctx context.Context, worktreeDir string, content []byte) (blob string, err error) + IsAncestor func(ctx context.Context, dir, ancestor, descendant string) (isAncestor bool, err error) + IsShallow func(ctx context.Context, dir string) (bool, error) + Log func(ctx context.Context, worktreeDir, revRange string) (shas []string, err error) + LsRemoteBranch func(ctx context.Context, cloneDir, remote, branch string) (sha string, ok bool, err error) + LsTreeBlob func(ctx context.Context, worktreeDir, rev, path string) (blob string, ok bool, err error) + ObjectExists func(ctx context.Context, dir, sha string) (bool, error) + Push func(ctx context.Context, worktreeDir, remote, branch string) error + PushHeadTo func(ctx context.Context, worktreeDir, remote, remoteBranch string) error + RemoveWorktree func(ctx context.Context, cloneDir, worktreeDir string) error + RevParse func(ctx context.Context, worktreeDir, rev string) (sha string, ok bool, err error) + Worktree func(ctx context.Context, cloneDir, worktreeDir, branch, base string) error + WorktreeAtRef func(ctx context.Context, cloneDir, dir, ref string) error + WorktreeBranch func(ctx context.Context, cloneDir, worktreeDir string) (branch string, ok bool, err error)