Documentation
¶
Index ¶
- func Churn(ctx context.Context, root string, window time.Duration) (map[string]ChurnStat, error)
- func DirtyPaths(ctx context.Context, root string) ([]string, error)
- func HeadCommit(ctx context.Context, root string) (string, error)
- func IsIgnored(ctx context.Context, root, path string) bool
- func IsShallow(ctx context.Context, root string) bool
- func RepoRoot(ctx context.Context, dir string) (string, error)
- func ShortSHA(sha string) string
- func TreeDigests(ctx context.Context, root, commit string) (map[string]string, error)
- type BaseMode
- type Change
- type ChurnStat
- type LineRange
- type Options
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Churn ¶
Churn reports per-file change activity over the trailing window, keyed by slash-separated path relative to root. Only production Go files count: churn in tests is not production exposure, and churn in non-Go files is not this tool's business.
Types ¶
type ChurnStat ¶
type ChurnStat struct {
Commits int `json:"commits"`
LinesChanged int `json:"linesChanged"`
LastUnix int64 `json:"lastUnix"`
}
ChurnStat is one file's recent change activity.
Click to show internal directories.
Click to hide internal directories.