Versions in this module Expand all Collapse all v1 v1.0.0 Jan 7, 2026 Changes in this version + type Executor interface + ApplyPatch func(ctx context.Context, patch io.Reader) error + Commit func(ctx context.Context, message string) error + Diff func(ctx context.Context, paths ...string) (string, error) + DiffCached func(ctx context.Context, paths ...string) (string, error) + Reset func(ctx context.Context) error + ResetPath func(ctx context.Context, path string) error + Root func(ctx context.Context) (string, error) + Status func(ctx context.Context) (*RepoStatus, error) + type FileStatus struct + Path string + Staged bool + Unstaged bool + Untracked bool + type RepoStatus struct + StagedFiles []string + UnstagedFiles []string + UntrackedFiles []string + type ShellExecutor struct + WorkDir string + func NewShellExecutor(workDir string) *ShellExecutor + func (e *ShellExecutor) ApplyPatch(ctx context.Context, patch io.Reader) error + func (e *ShellExecutor) Commit(ctx context.Context, message string) error + func (e *ShellExecutor) Diff(ctx context.Context, paths ...string) (string, error) + func (e *ShellExecutor) DiffCached(ctx context.Context, paths ...string) (string, error) + func (e *ShellExecutor) Reset(ctx context.Context) error + func (e *ShellExecutor) ResetPath(ctx context.Context, path string) error + func (e *ShellExecutor) Root(ctx context.Context) (string, error) + func (e *ShellExecutor) Status(ctx context.Context) (*RepoStatus, error)