git

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2020 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

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 New

func New() *Git

func (*Git) CommitMessage added in v0.3.0

func (g *Git) CommitMessage(commit string) (string, error)

CommitMessage returns the commit message for a ref

func (*Git) CommitMessages added in v0.3.0

func (g *Git) CommitMessages(base, merge string) (string, error)

CommitMessages returns the first commit message between two refs

func (*Git) Get

func (g *Git) Get(key string) (string, error)

func (*Git) LocalBranch

func (g *Git) LocalBranch() (string, error)

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) RevList added in v0.3.0

func (g *Git) RevList(base, merge string) ([]string, error)

RevList returns a list of revisions between the two commits

func (*Git) Set

func (g *Git) Set(key, val string, global bool) error

func (*Git) SetAccessToken

func (g *Git) SetAccessToken(r lab.RemoteProject, token string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL