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 Repo
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 Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
func CloneMirrored ¶ added in v0.1.4
func (*Repo) GetCommitFullHash ¶ added in v0.1.4
Click to show internal directories.
Click to hide internal directories.