Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangedFiles ¶
ChangedFiles returns file paths changed between sinceCommit and HEAD.
func CurrentCommit ¶
CurrentCommit returns the HEAD commit hash for the repo at root.
func LangForExt ¶
LangForExt returns the language for a file extension, or empty string if unsupported.
Types ¶
type Matcher ¶
type Matcher struct {
// contains filtered or unexported fields
}
Matcher loads .gitignore patterns and checks paths against them.
func NewMatcher ¶
NewMatcher creates a Matcher by loading .gitignore from the given root directory.
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
Scanner walks a directory tree to find supported source files.
func NewScanner ¶
NewScanner creates a Scanner for the given root directory.
Click to show internal directories.
Click to hide internal directories.