git

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL