Versions in this module Expand all Collapse all v0 v0.9.0 Oct 2, 2026 v0.8.0 Oct 1, 2026 Changes in this version + func CanonicalRemoteEndpoint(raw string) (string, error) + func SanitizeArgs(args []string) ([]string, error) + func SanitizeBranchName(name string) error + func SanitizeCommitMessage(message string) error + func SanitizePath(path string) error + func SanitizeRemoteName(name string) error + func SanitizeURL(value string) error + type Executor struct + func NewExecutor(opts ...Option) *Executor + func (e *Executor) GetGitVersion(ctx context.Context) (string, error) + func (e *Executor) IsGitRepository(ctx context.Context, dir string) bool + func (e *Executor) Run(ctx context.Context, dir string, args ...string) (*Result, error) + func (e *Executor) RunLines(ctx context.Context, dir string, args ...string) ([]string, error) + func (e *Executor) RunOutput(ctx context.Context, dir string, args ...string) (string, error) + func (e *Executor) RunQuiet(ctx context.Context, dir string, args ...string) (bool, error) + func (e *Executor) RunWithEnv(ctx context.Context, dir string, extraEnv []string, args ...string) (*Result, error) + func (e *Executor) RunWithOutputLimit(ctx context.Context, dir string, extraEnv []string, limit int64, ...) (*Result, bool, error) + func (e *Executor) RunWithOutputLimitCleanEnv(ctx context.Context, dir string, env []string, limit int64, args ...string) (*Result, bool, error) + type GitError struct + Cause error + Command string + ExitCode int + Stderr string + func (e *GitError) Error() string + func (e *GitError) Is(target error) bool + func (e *GitError) Unwrap() error + type Option func(*Executor) + func WithEnv(env []string) Option + func WithGitBinary(path string) Option + func WithTimeout(timeout time.Duration) Option + type Result struct + Duration time.Duration + Error error + ExitCode int + Stderr string + Stdout string