Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangedFiles ¶
ChangedFiles returns the list of files differing in sinceRef and the working directory. Example of sinceRev: "origin/main".
func EnsureSameRepo ¶
EnsureSameRepo ensures that all files belong to the same git repository and returns its absolute path.
func Exec ¶
Exec returns a function that executes a git command and returns its standard output. The context must be a path to an existing file or directory.
It is suitable only for commands that exit quickly and have small output, e.g. rev-parse.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.