Versions in this module Expand all Collapse all v0 v0.6.0 Feb 3, 2026 Changes in this version + func Add(dir string, patterns ...string) error + func Checkout(dir string, ref string) error + func Commit(dir string, message string) error + func CreateBranch(dir string, name string) error + func CreateWorktree(repoDir string, branch string, worktreeDir string) error + func CurrentBranch(dir string) (string, error) + func GetVersion() (string, error) + func Init(dir string) error + func IsGitInstalled() bool + func IsRepo(dir string) bool + func SetupTestConfig(dir string) error + type Git struct + func CloneRepo(source, dest string) (*Git, error) + func CreateTestRepo(dir string, files map[string]string) (*Git, error) + func New(dir string) *Git + func SetupTestRepo(dir string) (*Git, error) + func (g *Git) Add(patterns ...string) error + func (g *Git) AddCommit(message string) error + func (g *Git) AddRemote(name, url string) error + func (g *Git) Checkout(ref string) error + func (g *Git) Commit(message string) error + func (g *Git) CreateBranch(name string) error + func (g *Git) CreateBranchWithChanges(branch string, changes map[string]string) error + func (g *Git) CreateWorktree(path, branch string) error + func (g *Git) CurrentBranch() (string, error) + func (g *Git) GetConfig(key string) (string, error) + func (g *Git) GetRootDir() (string, error) + func (g *Git) HasUncommittedChanges() (bool, error) + func (g *Git) ListRemotes() ([]Remote, error) + func (g *Git) ListWorktrees() ([]string, error) + func (g *Git) PruneWorktrees() error + func (g *Git) Pull(remote, branch string) error + func (g *Git) Push(remote, branch string) error + func (g *Git) RemoveRemote(name string) error + func (g *Git) RemoveWorktree(name string) error + func (g *Git) SetConfig(key, value string) error + func (g *Git) SetUser(name, email string) error + func (g *Git) Status() (string, error) + type Remote struct + Name string + URL string v0.0.1 Jan 16, 2026