Documentation ¶ Index ¶ Variables func Clone(url, dir string) error func Installed(dir string) (bool, error) func Pull(dir, branch string) error type State func ComputeStatus(dir, branch string) (State, error) func Status(dir, branch string) (State, error) Constants ¶ This section is empty. Variables ¶ View Source var FetchTTL = 5 * time.Minute Functions ¶ func Clone ¶ func Clone(url, dir string) error func Installed ¶ func Installed(dir string) (bool, error) func Pull ¶ func Pull(dir, branch string) error Types ¶ type State ¶ type State struct { Behind int Diverged bool Dirty bool Installed bool } func ComputeStatus ¶ func ComputeStatus(dir, branch string) (State, error) func Status ¶ func Status(dir, branch string) (State, error) Source Files ¶ View all Source files git.go Click to show internal directories. Click to hide internal directories.