git

package
v0.34.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2026 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RepoStatus

type RepoStatus struct {
	RepoName string
	Branch   string
	Clean    bool
	Staged   int
	Unstaged int
	Ahead    int
	Behind   int
	Conflict bool
}

func GetStatus

func GetStatus(dir string) *RepoStatus

func GetStatusWithContext

func GetStatusWithContext(ctx context.Context, dir string) *RepoStatus

func GetStatusWithTimeout

func GetStatusWithTimeout(dir string, timeout time.Duration) *RepoStatus

Timeout helper could be added if needed, but for now we rely on git being reasonably fast on local repos

Jump to

Keyboard shortcuts

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