Versions in this module Expand all Collapse all v0 v0.1.1 Jul 10, 2026 v0.1.0 Jul 10, 2026 Changes in this version + var ErrNotAGitRepo = errors.New("gauntlet: not a git repository") + func Compute(ctx context.Context, root string, mode Mode, ref string) (map[string]FileChanges, error) + func Parse(diff []byte) (map[string]FileChanges, error) + type EmptyScope struct + func (EmptyScope) Files() []string + func (EmptyScope) Includes(string, int) bool + func (EmptyScope) IsScoped() bool + type FileChanges struct + IsBinary bool + IsNew bool + Path string + Ranges []LineRange + type LineRange struct + End int + Start int + func (r LineRange) Contains(l int) bool + type Mode int + const ModeSince + const ModeStaged + const ModeWholeTree + type Scope interface + Files func() []string + Includes func(file string, line int) bool + IsScoped func() bool + func FromChanges(c map[string]FileChanges) Scope