Versions in this module Expand all Collapse all v0 v0.1.0 Dec 30, 2025 Changes in this version + const NotesRef + var ErrDetachedHead = errors.New("not on a branch (detached HEAD)") + func FindCommitByPatchID(patchID, startCommit string, limit int) (string, error) + func GetAncestors(commit string, limit int) ([]string, error) + func GetAncestorsUpTo(start, end string) ([]string, error) + func GetCurrentBranch() (string, error) + func GetGitDir() (string, error) + func GetHEAD() (string, error) + func GetPatchID(commit string) (string, error) + func GetRepoRoot() (string, error) + func GetShortSHA(commit string) (string, error) + func IsAncestor(ancestor, descendant string) (bool, error) + func IsDetachedHead() bool + func IsInsideWorkTree() bool + func Run(args ...string) (string, error) + func RunWithStdin(stdin string, args ...string) (string, error) + type CommitInfo struct + SHA string + ShortSHA string + Subject string + func GetCommitLog(commit string, limit int) ([]CommitInfo, error)