Versions in this module Expand all Collapse all v0 v0.0.1 Dec 7, 2023 Changes in this version + const RemoteGitUrlRegex + var InvalidReferenceErr = errors.New("invalid remote reference") + var RemoteGitUrlErr = errors.New("invalid git remote repository url") + type BranchName string + type CloneOps struct + Path string + Refs BranchName + Remote RemoteGitUrl + type Git interface + Clone func(ops CloneOps) error + CreateLightweightTag func(repo Repo, tag string, branch BranchName) error + CurrentBranch func(repo Repo) (BranchName, error) + DiffersFromRemote func(repo Repo) (bool, error) + Fetch func(repo Repo) error + HasChanges func(repo Repo) (bool, error) + ListBranches func(repo Repo) ([]BranchName, error) + ListRemotes func(repo Repo) ([]Remote, error) + Pull func(repo Repo, rebase bool) error + PullBranch func(repo Repo, branch BranchName, rebase bool) error + PushTag func(repo Repo, tag Tag, remote Remote) error + Status func(repo Repo) (StatusRes, error) + Switch func(repo Repo, branch BranchName, force bool) error + type Remote string + type RemoteGitUrl string + func NewRemoteGitUrl(raw string) (RemoteGitUrl, error) + type Repo struct + Path string + Refs BranchName + Remote RemoteGitUrl + type StatusRes struct + Branch BranchName + Change bool + type Tag string