Documentation ¶
Overview ¶
Package git simplifies git operations
Index ¶
- Constants
- Variables
- func AbbreviateHash(h plumbing.Hash) string
- func AnnotateRefName(name plumbing.ReferenceName) string
- func EmptyListOptions() *git.ListOptions
- func Fetch(local string) (updated bool, err error)
- func FilterBranches(refs []*plumbing.Reference) []*plumbing.Reference
- func FilterRemotes(refs []*plumbing.Reference) []*plumbing.Reference
- func FilterTags(refs []*plumbing.Reference) []*plumbing.Reference
- func Head(local string) (ref *plumbing.Reference, err error)
- func ParseRemoteRelease(remoteRelease string) (remote, release string, err error)
- func Prune(local string) (updated bool, err error)
- func Pull(local string) (updated bool, err error)
- func Refs(local string) (refs []*plumbing.Reference, err error)
- func Remotes(local string) (remotes []*git.Remote, err error)
- func Status(local string) (status git.Status, err error)
- func StringifyRef(ref *plumbing.Reference) string
- type AncestralTag
- type Repo
- func (r *Repo) Checkout(release string, remote string) error
- func (r *Repo) FetchAll() error
- func (r *Repo) GetAncestralTags(commit string) ([]AncestralTag, error)
- func (r *Repo) GetCommitFullHash(commit string) (string, error)
- func (r *Repo) GetCommitTime(commit string) (time.Time, error)
- func (r *Repo) GetHead() (string, error)
- func (r *Repo) GetTags() ([]Tag, error)
- func (r *Repo) GetTagsAt(commit string) ([]Tag, error)
- func (r *Repo) MakeTrackingBranches(remoteName string) error
- func (r *Repo) Refs() (refs []*plumbing.Reference, err error)
- func (r *Repo) SetRemoteURLs(remoteName string, urls []string) error
- func (r *Repo) Status() (status git.Status, err error)
- type Tag
Constants ¶
View Source
const ( StatusUnmodified = git.Unmodified StatusRenamed = git.Renamed )
View Source
const HashReference = plumbing.HashReference
Variables ¶
View Source
var ErrRepositoryAlreadyExists = git.ErrRepositoryAlreadyExists
Functions ¶
func AbbreviateHash ¶ added in v0.1.3
func AnnotateRefName ¶ added in v0.1.3
func AnnotateRefName(name plumbing.ReferenceName) string
func EmptyListOptions ¶ added in v0.1.3
func EmptyListOptions() *git.ListOptions
func FilterBranches ¶ added in v0.1.3
func FilterRemotes ¶ added in v0.1.3
func ParseRemoteRelease ¶
func StringifyRef ¶ added in v0.1.3
Types ¶
type AncestralTag ¶ added in v0.4.0
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
func CloneMirrored ¶ added in v0.1.4
func (*Repo) GetAncestralTags ¶ added in v0.4.0
func (r *Repo) GetAncestralTags(commit string) ([]AncestralTag, error)
func (*Repo) GetCommitFullHash ¶ added in v0.1.4
func (*Repo) MakeTrackingBranches ¶ added in v0.6.0
func (*Repo) SetRemoteURLs ¶ added in v0.6.0
Click to show internal directories.
Click to hide internal directories.