Versions in this module Expand all Collapse all v0 v0.1.0 Apr 24, 2026 Changes in this version + func CommitsAhead(branch, remote string) (int, error) + func CurrentBranch() (string, error) + func HeadParents() ([]string, error) + func HeadSHA() (string, error) + func HeadSHAShort() (string, error) + func IsGitRepo() bool + func IsShallowRepo() bool + func ParseProjectSlugFromURL(remoteURL string) (projectKey, repoSlug string) + func Refspecs(branch string) []string + func RemoteURL(remote string) (string, error) + func Run(args ...string) (string, error) + func StagedFiles() ([]string, error) + type DiffStat struct + Deletions int + FilesChanged int + Insertions int + func StagedDiffStats() (DiffStat, error)