Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Guide ¶
type Guide struct { Tags []string Depth int Hash plumbing.Hash // contains filtered or unexported fields }
Guide describes the distance in Depth of the value in Hash to the commit with the given Tags or the initial commit if there are no tags.
func GetGuide ¶
func GetGuide(repo *git.Repository, ref *plumbing.Reference, tagPattern *regexp.Regexp) (guide Guide, err error)
GetGuide looks at the given git repository and gives the given plumbing.Reference ref a human-readable name based on another available ref.
func (Guide) AbbreviatedHash ¶
Click to show internal directories.
Click to hide internal directories.