Documentation ¶
Index ¶
- Constants
- Variables
- func IsWorking() (bool, error)
- type Git
- func (g *Git) AheadCount() (int, error)
- func (g *Git) AheadCountVar(v *int) error
- func (g *Git) BaseBranch(branch string) (string, error)
- func (g *Git) BaseBranchVar(branch string, v *string) error
- func (g *Git) BehindCount() (int, error)
- func (g *Git) BehindCountFrom(baseBranch string) (int, error)
- func (g *Git) BehindCountFromVar(baseBranch string, v *int) error
- func (g *Git) BehindCountVar(v *int) error
- func (g *Git) Branch() (string, error)
- func (g *Git) BranchVar(v *string) error
- func (g *Git) Call(args ...string) ([]byte, error)
- func (g *Git) Close() error
- func (g *Git) Email() (string, error)
- func (g *Git) EmailVar(v *string) error
- func (g *Git) LastCommitHash() (string, error)
- func (g *Git) LastCommitHashVar(v *string) error
- func (g *Git) LastCommitMessage() (string, error)
- func (g *Git) LastCommitMessageVar(v *string) error
- func (g *Git) LastCommitter() (string, error)
- func (g *Git) LastCommitterVar(v *string) error
- func (g *Git) Remote(branch string) (string, error)
- func (g *Git) RemoteURL(remote string) (string, error)
- func (g *Git) RemoteURLVar(remote string, v *string) error
- func (g *Git) RemoteVar(branch string, v *string) error
- func (g *Git) Root() string
- func (g *Git) Staged() (bool, error)
- func (g *Git) StagedVar(v *bool) error
- func (g *Git) StashCount() (int, error)
- func (g *Git) StashCountVar(v *int) error
- func (g *Git) Unstaged() (bool, error)
- func (g *Git) UnstagedVar(v *bool) error
- func (g *Git) Untracked() (bool, error)
- func (g *Git) UntrackedVar(v *bool) error
- func (g *Git) Upstream() (string, error)
- func (g *Git) UpstreamVar(v *string) error
Constants ¶
View Source
const Head = "HEAD"
Head :
Variables ¶
View Source
var ( // ErrIsNotInWorkingDirectory : ErrIsNotInWorkingDirectory = errors.New("not in working directory") )
Functions ¶
Types ¶
type Git ¶
type Git struct {
// contains filtered or unexported fields
}
Git handles git command and get informations from repository.
func (*Git) BaseBranchVar ¶
BaseBranchVar :
func (*Git) BehindCountFrom ¶
BehindCountFrom :
func (*Git) BehindCountFromVar ¶
BehindCountFromVar :
func (*Git) LastCommitHashVar ¶
LastCommitHashVar :
func (*Git) LastCommitMessage ¶
LastCommitMessage :
func (*Git) LastCommitMessageVar ¶
LastCommitMessageVar :
func (*Git) RemoteURLVar ¶
RemoteURLVar :
Click to show internal directories.
Click to hide internal directories.