Versions in this module Expand all Collapse all v0 v0.1.0 Jun 11, 2026 Changes in this version + const MaxBlobBytes + const TooLargeLines + var ErrNotFound = errors.New("not found") + var ErrUnsupported = errors.New("unsupported") + type BlameHunk struct + Commit Commit + Lines int + Prev string + StartLine int + type Blob struct + Binary bool + Content []byte + LFS *LFSPointer + Path string + Size int64 + Symlink bool + TooBig bool + type Commit struct + Author Signature + Body string + Committer Signature + Parents []string + SHA string + Subject string + type CommitDetail struct + Files []FileDiff + Stats StatTotal + type DiffLine struct + Kind LineKind + NewNum int + NoEOF bool + OldNum int + Text string + type DiffStatus string + const Added + const Copied + const Deleted + const Modified + const Renamed + type EntryKind int + const KindDir + const KindFile + const KindSubmodule + const KindSymlink + type FileDiff struct + Additions int + Binary bool + Deletions int + Hunks []Hunk + NewPath string + OldPath string + Status DiffStatus + TooLarge bool + func ParsePatch(patch string) []FileDiff + type Hunk struct + Header string + Lines []DiffLine + NewLines int + NewStart int + OldLines int + OldStart int + type Info struct + CloneURL string + DefaultBranch string + Description string + Mirror bool + Name string + Owner string + type LFSPointer struct + OID string + Size int64 + type LineKind int + const Addition + const Context + const Deletion + type RateLimitError struct + Reset time.Time + func (e *RateLimitError) Error() string + type Ref struct + Date time.Time + Name string + SHA string + type Refs struct + Branches []Ref + Tags []Ref + type Repo interface + Archive func(ctx context.Context, rev, format, prefix string, w io.Writer) error + Blame func(ctx context.Context, rev, path string) ([]BlameHunk, error) + Blob func(ctx context.Context, rev, path string) (Blob, error) + Commit func(ctx context.Context, sha string) (CommitDetail, error) + Commits func(ctx context.Context, rev, path string, n, skip int) (commits []Commit, more bool, err error) + Files func(ctx context.Context, rev string) ([]string, error) + Info func(ctx context.Context) (Info, error) + LastCommit func(ctx context.Context, rev, path string) (Commit, error) + Refs func(ctx context.Context) (Refs, error) + Resolve func(ctx context.Context, ref string) (string, error) + Tree func(ctx context.Context, rev, path string) ([]TreeEntry, error) + type Signature struct + AvatarURL string + Date time.Time + Email string + Login string + Name string + type StatTotal struct + Additions int + Deletions int + FilesChanged int + type TreeEntry struct + Kind EntryKind + Mode string + Name string + Path string + SHA string + Size int64