Documentation
¶
Index ¶
- type Git
- func (g *Git) CommitMessage(commit string) (string, error)
- func (g *Git) CommitMessages(base, merge string) (string, error)
- func (g *Git) Get(key string) (string, error)
- func (g *Git) LocalBranch() (string, error)
- func (g *Git) RemoteProject() (lab.RemoteProject, error)
- func (g *Git) RevList(base, merge string) ([]string, error)
- func (g *Git) Set(key, val string, global bool) error
- func (g *Git) SetAccessToken(r lab.RemoteProject, token string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Git ¶
type Git struct{}
Git is a client for the local Git repo
func (*Git) CommitMessage ¶ added in v0.3.0
CommitMessage returns the commit message for a ref
func (*Git) CommitMessages ¶ added in v0.3.0
CommitMessages returns the first commit message between two refs
func (*Git) LocalBranch ¶
LocalBranch returns the name of the local branch
func (*Git) RemoteProject ¶
func (g *Git) RemoteProject() (lab.RemoteProject, error)
RemoteProject returns the remote Gitlab project of the local branch
func (*Git) SetAccessToken ¶
func (g *Git) SetAccessToken(r lab.RemoteProject, token string) error
Click to show internal directories.
Click to hide internal directories.