Documentation ¶
Overview ¶
Package git provides helpers for SCM.
Index ¶
- type Git
- func (g *Git) AheadBehind(ref string) (ahead, behind int, err error)
- func (g *Git) CheckoutPullRequest(number int) (err error)
- func (g *Git) FetchPullRequest(remote string, number int) (err error)
- func (g *Git) HasGPGSignature() (ok bool, err error)
- func (g *Git) Message() (message string, err error)
- func (g *Git) Messages(commit1, commit2 string) ([]string, error)
- func (g *Git) SHA() (sha string, err error)
- func (g *Git) VerifyPGPSignature(armoredKeyrings []string) (*openpgp.Entity, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Git ¶
type Git struct {
// contains filtered or unexported fields
}
Git is a helper for git.
func (*Git) AheadBehind ¶
AheadBehind returns the number of commits that HEAD is ahead and behind relative to the specified ref.
func (*Git) CheckoutPullRequest ¶
CheckoutPullRequest checks out pull request.
func (*Git) FetchPullRequest ¶
FetchPullRequest fetches a remote PR.
func (*Git) HasGPGSignature ¶
HasGPGSignature returns the commit message. In the case that a commit has multiple parents, the message of the last parent is returned.
func (*Git) Message ¶
Message returns the commit message. In the case that a commit has multiple parents, the message of the last parent is returned.
Click to show internal directories.
Click to hide internal directories.