Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repo ¶
type Repo struct {
Name string `json:"name"`
Path string `json:"path"`
Status RepoStatus `json:"status"`
}
Repo represents a git repository with its metadata and status
type RepoStatus ¶
type RepoStatus struct {
Branch string `json:"branch"`
Ahead int `json:"ahead"`
Behind int `json:"behind"`
Staged int `json:"staged"`
Unstaged int `json:"unstaged"`
Untracked int `json:"untracked"`
LastCommit time.Time `json:"last_commit"`
IsDirty bool `json:"is_dirty"`
ScanError string `json:"scan_error,omitempty"`
}
RepoStatus contains the git status information for a repository
Click to show internal directories.
Click to hide internal directories.