Versions in this module Expand all Collapse all v1 v1.0.2 Dec 29, 2025 v1.0.1 Dec 7, 2025 Changes in this version + func RefToFileName(ref string) string type Ref + func NewRef(ref string) Ref + func (r Ref) DirName() string + func (r Ref) IsEmpty() bool + func (r Ref) String() string v1.0.0 Dec 1, 2025 Changes in this version + func BlobContent(ref Ref, path string, repoDir string) ([]byte, bool, error) + func CommitDiff(hash, repoDir string) (string, error) + func IsBinary(b []byte) bool + func ParseFileMode(modeStr string) (string, error) + type Blob struct + FileName string + Mode string + Path string + Ref Ref + Size int64 + func Files(ref Ref, repoDir string) ([]Blob, error) + type Commit struct + Author string + Body string + Branch Ref + Date time.Time + Email string + Hash string + Href string + Parents []string + RefNames []RefName + ShortHash string + Subject string + func Commits(ref Ref, repoDir string) ([]Commit, error) + type Ref string + func Branches(repoDir string, filter *regexp.Regexp, defaultBranch string) ([]Ref, error) + type RefKind string + const RefKindBranch + const RefKindHEAD + const RefKindRemote + const RefKindRemoteHEAD + const RefKindTag + type RefName struct + Kind RefKind + Name string + Target string + type Tag struct + CommitHash string + Date time.Time + Name string + func Tags(repoDir string) ([]Tag, error)