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
Click to show internal directories.
Click to hide internal directories.