Documentation
¶
Index ¶
- type GitStatus
- type GitStatusInfo
- func (g *GitStatusInfo) Ahead() int
- func (g *GitStatusInfo) Behind() int
- func (g *GitStatusInfo) Branch() string
- func (g *GitStatusInfo) Deleted() int
- func (g *GitStatusInfo) IsGit() bool
- func (g *GitStatusInfo) Modified() int
- func (g *GitStatusInfo) Path() string
- func (g *GitStatusInfo) Staged() int
- func (g *GitStatusInfo) Unmerged() int
- func (g *GitStatusInfo) Untracked() int
- type NotGitRepositoryError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitStatusInfo ¶
type GitStatusInfo struct {
// contains filtered or unexported fields
}
GitStatusInfo : Contains information about the git status of a repository
func (*GitStatusInfo) Ahead ¶
func (g *GitStatusInfo) Ahead() int
Ahead : Returns the number of commits the repository is ahead of master
func (*GitStatusInfo) Behind ¶
func (g *GitStatusInfo) Behind() int
Behind : Returns the number of commits the repository is behind the master
func (*GitStatusInfo) Branch ¶
func (g *GitStatusInfo) Branch() string
Branch : Returns the name of the current branch
func (*GitStatusInfo) Deleted ¶
func (g *GitStatusInfo) Deleted() int
Deleted : Returns the number of deleted files
func (*GitStatusInfo) IsGit ¶
func (g *GitStatusInfo) IsGit() bool
IsGit : Returns the true if the path is a git repository
func (*GitStatusInfo) Modified ¶
func (g *GitStatusInfo) Modified() int
Modified : Returns the number of modified files
func (*GitStatusInfo) Path ¶
func (g *GitStatusInfo) Path() string
Path : Returns the path to the git repository
func (*GitStatusInfo) Staged ¶
func (g *GitStatusInfo) Staged() int
Staged : Returns the number of staged files
func (*GitStatusInfo) Unmerged ¶
func (g *GitStatusInfo) Unmerged() int
Unmerged : Returns the number of unmerged files
func (*GitStatusInfo) Untracked ¶
func (g *GitStatusInfo) Untracked() int
Untracked : Returns the number of untracked files
type NotGitRepositoryError ¶
type NotGitRepositoryError struct {
Path string
}
NotGitRepositoryError : The specified path is not a Git repository
func (NotGitRepositoryError) Error ¶
func (e NotGitRepositoryError) Error() string