Versions in this module Expand all Collapse all v0 v0.75.0 Dec 4, 2026 v0.74.0 Dec 4, 2026 v0.73.0 Dec 3, 2026 Changes in this version + const MaxDiffBytes + type Diff struct + Binary bool + GapAfter int + Hunks []Hunk + NewSize int64 + OldSize int64 + TooLarge bool + type File struct + Added int + Binary bool + ChildCount int + Children []string + CountsKnown bool + Dir bool + HeadOID string + ModTime time.Time + Path string + Removed int + Size int64 + Status Status + func Merge(existing []File, requested []string, scanned []File) []File + func (f File) Key() FileKey + type FileKey struct + type Hunk struct + Function string + GapBefore int + Lines []Line + NewCount int + NewStart int + OldCount int + OldStart int + type Line struct + Kind LineKind + New int + Old int + Text string + type LineKind uint8 + const LineAdded + const LineContext + const LineRemoved + type Repo struct + func Open(ctx context.Context, workDir string) (*Repo, error) + func (r *Repo) AbsPath(repoPath string) string + func (r *Repo) DisplayPath(repoPath string) string + func (r *Repo) LoadDiff(ctx context.Context, f File, force bool) (*Diff, error) + func (r *Repo) RepoPath(workDir, path string) (string, bool) + func (r *Repo) Scan(ctx context.Context, paths []string) ([]File, error) + type Status byte + const StatusAdded + const StatusConflict + const StatusDeleted + const StatusModified + const StatusUntracked