Versions in this module Expand all Collapse all v0 v0.0.7 May 30, 2026 Changes in this version + func EnsureAvailable() error + func GetCurrentBranch(dir string) (string, error) + func IsIgnored(dir, path string) bool + func IsRepo(dir string) bool + type Command struct + func Add(paths ...string) *Command + func Branch(args ...string) *Command + func CheckIgnore(path string) *Command + func Checkout(paths ...string) *Command + func Clone(repoURL, targetDir string, sshKeyPath ...string) *Command + func Commit(message string) *Command + func Config(key, value string) *Command + func Diff(args ...string) *Command + func DiffCached() *Command + func Fetch(sshKeyPath ...string) *Command + func ForEachRef(args ...string) *Command + func LsFiles(args ...string) *Command + func NewCommand(args ...string) *Command + func Pull(sshKeyPath ...string) *Command + func PullFFOnly(sshKeyPath ...string) *Command + func Push(branch string, sshKeyPath ...string) *Command + func Reset(paths ...string) *Command + func RevParse(args ...string) *Command + func Show(args ...string) *Command + func Status(args ...string) *Command + func (c *Command) AllowPrompts() *Command + func (c *Command) Build() *exec.Cmd + func (c *Command) Dir(dir string) *Command + func (c *Command) Exec() *exec.Cmd + func (c *Command) Output() ([]byte, error) + func (c *Command) Run() ([]byte, error) + func (c *Command) RunSilent() error + func (c *Command) Validate() error + func (c *Command) WithEnv(key, value string) *Command + func (c *Command) WithSSHConfig(cfg *SSHKeyConfig) *Command + func (c *Command) WithSSHKey(keyPath string) *Command + type SSHKeyConfig struct + KeyPath string + ProxyURL string