Versions in this module Expand all Collapse all v1 v1.0.0 Jun 14, 2026 Changes in this version + type Branch struct + Current bool + Name string + Remote bool + SHA string + Upstream string + type Commit struct + Author string + Date string + Message string + Refs string + SHA string + type ExecAdapter struct + func NewExecAdapter(bus *events.Bus) *ExecAdapter + func (a *ExecAdapter) AddRemote(ctx context.Context, name, url string) error + func (a *ExecAdapter) CheckoutBranch(ctx context.Context, name string) error + func (a *ExecAdapter) CreateBranch(ctx context.Context, name string) error + func (a *ExecAdapter) CreateCommit(ctx context.Context, message, author string) (string, error) + func (a *ExecAdapter) CurrentBranch(ctx context.Context) (string, error) + func (a *ExecAdapter) DeleteBranch(ctx context.Context, name string, force bool) error + func (a *ExecAdapter) GetCommitHistory(ctx context.Context, branch string, limit int) ([]Commit, error) + func (a *ExecAdapter) GetGraph(ctx context.Context, branch string, maxCount int) ([]GraphNode, error) + func (a *ExecAdapter) GetRemotes(ctx context.Context) ([]Remote, error) + func (a *ExecAdapter) GetStatus(ctx context.Context) (*Status, error) + func (a *ExecAdapter) ListBranches(ctx context.Context) ([]Branch, error) + func (a *ExecAdapter) OpenRepository(ctx context.Context, path string) error + func (a *ExecAdapter) Pull(ctx context.Context, remote, branch string) (*PullResult, error) + func (a *ExecAdapter) Push(ctx context.Context, remote, branch string, force bool) (*PushResult, error) + func (a *ExecAdapter) RemoveRemote(ctx context.Context, name string) error + func (a *ExecAdapter) Root() string + func (a *ExecAdapter) Run(ctx context.Context, args ...string) (string, string, error) + type GitAdapter interface + AddRemote func(ctx context.Context, name, url string) error + CheckoutBranch func(ctx context.Context, name string) error + CreateBranch func(ctx context.Context, name string) error + CreateCommit func(ctx context.Context, message, author string) (string, error) + CurrentBranch func(ctx context.Context) (string, error) + DeleteBranch func(ctx context.Context, name string, force bool) error + GetCommitHistory func(ctx context.Context, branch string, limit int) ([]Commit, error) + GetGraph func(ctx context.Context, branch string, maxCount int) ([]GraphNode, error) + GetRemotes func(ctx context.Context) ([]Remote, error) + GetStatus func(ctx context.Context) (*Status, error) + ListBranches func(ctx context.Context) ([]Branch, error) + OpenRepository func(ctx context.Context, path string) error + Pull func(ctx context.Context, remote, branch string) (*PullResult, error) + Push func(ctx context.Context, remote, branch string, force bool) (*PushResult, error) + RemoveRemote func(ctx context.Context, name string) error + Root func() string + type GraphNode struct + Message string + Parents []string + Refs string + SHA string + type PullResult struct + FastForward bool + Output string + type PushResult struct + Output string + type Remote struct + Name string + PushURL string + URL string + type Status struct + Branch string + Clean bool + Staged []StatusEntry + Unstaged []StatusEntry + Untracked []string + type StatusEntry struct + IndexStatus string + OldPath string + Path string + WorktreeStatus string