Documentation
¶
Overview ¶
Package git provides git repository status information for the working directory.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetStatus ¶
GetStatus returns the git status for the given directory, or nil if the directory is not a git repo or any command fails. Callers must guard against nil before dereferencing the result.
Results are cached per directory for up to 1 second so rapid successive calls (e.g. multiple render ticks) avoid redundant subprocess spawns.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.