Documentation
¶
Overview ¶
Package diffstat computes added/deleted line counts for a git range via `git diff --numstat`. Used to attribute code volume to a task's branch.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Commits ¶ added in v0.8.0
Commits returns the SHAs of commits reachable from rev whose subject/body contains grepFixed (a literal substring, not a regex), newest first. Used to attribute per-task code volume to the checkpoint commits a task produced — their subject carries the task id (e.g. "pact <task>: checkpoint by <seat>"). Merge commits are skipped.
func IsRepoRoot ¶
IsRepoRoot reports whether repoDir is the ROOT of its own git repo (not a subdirectory of an enclosing one). A project living inside a monorepo (e.g. a hand-authored seed under dev/) would otherwise diff the OUTER repo's branches and show bogus code volume — this gates that out.
Types ¶
type Stat ¶
Stat is the line delta for a git range.