Documentation
¶
Overview ¶
Package changed implements `sf changed` — a compact, classified summary of a git diff: per file its status, churn (+/-), category, language, and the enclosing functions/classes touched (read from git's own hunk-header function context, no file parsing). Replaces reading a full `git diff` just to learn what changed and where.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCommand ¶
NewCommand returns the `changed` Cobra command (`sf changed`).
Types ¶
type Change ¶
type Change struct {
Status string `json:"status"` // M, A, D, R, untracked
Path string `json:"path"`
Category string `json:"category"`
Lang string `json:"lang,omitempty"`
Adds int `json:"adds"`
Dels int `json:"dels"`
Symbols []string `json:"symbols,omitempty"` // enclosing funcs/classes touched
}
Change is one changed file.
Click to show internal directories.
Click to hide internal directories.