Versions in this module Expand all Collapse all v0 v0.1.6 Jun 30, 2025 v0.1.4 Jun 29, 2025 Changes in this version + const GitStateClean + const GitStateDirty + const GitStateUntracked + var ErrNotGitRepo = fmt.Errorf("provided directory is not a git repository") + func Commit(dir, msg string, args ...string) error + func Push(dir string, args ...string) error + func RemoteSetURL(dir, name, url string, args ...string) error + type GitState uint8 + type Remote struct + Kind RemoteKind + Name string + URL string + func RemoteList(dir string) ([]Remote, error) + type RemoteKind uint8 + const RemoteKindPush + const RemotekindFetch + type StatusResult struct + Modified []string + State GitState + Untracked []string + func Status(dir string, ignoreUntracked bool, args ...string) (StatusResult, error)