Versions in this module Expand all Collapse all v0 v0.4.0 Sep 21, 2026 Changes in this version + var ErrNotARepository = errors.New("not inside a git repository") + type Repository interface + BranchExists func(branch string) (bool, error) + Changed func(branch string, paths []string) (map[string]bool, error) + CurrentBranch func() (string, error) + FilesAt func(branch string, paths []string) (map[string][]byte, error) + HasCommits func() (bool, error) + ListFiles func(branch string) ([]string, error) + Prefix func() (string, error) + RepoRoot func() (string, error) + func Open(dir string) (Repository, error)