Updated
On this page
Runs git status with a timeout and parses porcelain v2 output for branch name, ahead/behind counts, and working tree changes.
#internal/git
#internal/git
#Info
go
type Info structInfo holds parsed git status information for a working directory.
#GetInfo
go
func GetInfo(cwd string) *InfoGetInfo runs git status in cwd and returns parsed branch/change info. Returns HasGit=false on any error (not a repo, git missing, timeout).