howmuchleft v0.14.1 /internal/git
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 go
type Info struct

Info holds parsed git status information for a working directory.

#GetInfo

Go go
func GetInfo(cwd string) *Info

GetInfo runs git status in cwd and returns parsed branch/change info. Returns HasGit=false on any error (not a repo, git missing, timeout).

Search