Versions in this module Expand all Collapse all v0 v0.1.0 Jun 11, 2026 Changes in this version + type Repo struct + func New(ctx context.Context, dir string) (*Repo, error) + func (r *Repo) AheadBehind(ctx context.Context, rev, base string) (ahead, behind int, err error) + func (r *Repo) Archive(ctx context.Context, rev, format, prefix string, w io.Writer) error + func (r *Repo) Blame(ctx context.Context, rev, pth string) ([]backend.BlameHunk, error) + func (r *Repo) Blob(ctx context.Context, rev, pth string) (backend.Blob, error) + func (r *Repo) Commit(ctx context.Context, sha string) (backend.CommitDetail, error) + func (r *Repo) CommitCount(ctx context.Context, rev string) (int, error) + func (r *Repo) Commits(ctx context.Context, rev, pth string, n, skip int) ([]backend.Commit, bool, error) + func (r *Repo) Files(ctx context.Context, rev string) ([]string, error) + func (r *Repo) Info(ctx context.Context) (backend.Info, error) + func (r *Repo) LastCommit(ctx context.Context, rev, pth string) (backend.Commit, error) + func (r *Repo) Refs(ctx context.Context) (backend.Refs, error) + func (r *Repo) Resolve(ctx context.Context, ref string) (string, error) + func (r *Repo) Tree(ctx context.Context, rev, pth string) ([]backend.TreeEntry, error)