Versions in this module Expand all Collapse all v0 v0.6.76 Nov 22, 2026 Changes in this version + const DefaultMaxDiffBytes + const EmptyTree + var Env = []string + func Base(ctx context.Context, dir string, base devboxv1.ChangesBase) (ref, sha string, workTree bool, err error) + func Changes(ctx context.Context, dir string, opts ChangesOptions) (*devboxv1.RepositoryChanges, error) + func DefaultBranch(ctx context.Context, dir string) string + func IgnoredFilter(ctx context.Context, dir string, paths []string) map[string]bool + func Inspect(ctx context.Context, dir string) (*devboxv1.Checkout, error) + func IsRepo(dir string) bool + func Run(ctx context.Context, dir string, args ...string) ([]byte, error) + func RunEnv(ctx context.Context, dir string, env []string, args ...string) ([]byte, error) + type ChangesOptions struct + Base devboxv1.ChangesBase + IncludeDiff bool + MaxDiffBytes int + Path string + type DiffStat struct + Additions int + BaseSHA string + Deletions int + Files int + HeadSHA string + func BranchDiffStat(ctx context.Context, dir, base, head string) (*DiffStat, error) + type Error struct + Args []string + Code int + Stderr string + func (e *Error) Error() string + func (e *Error) Unwrap() error + type StatusEntry struct + OldPath string + Path string + XY string + func Status(ctx context.Context, dir string) ([]StatusEntry, error)