Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLatestTag ¶
Types ¶
type Revision ¶ added in v0.4.0
type Revision struct {
// Commit is the hash of the commit.
Commit string
// Time is when it was committed, in UTC.
Time time.Time
// Tags are the tags on the commit itself, sorted.
Tags []string
// AncestorTags are the tags on the commits it descends from, sorted.
// A tag on a commit that is not in its history, on another branch,
// is in neither list.
AncestorTags []string
}
Revision describes the commit a repository is at, with what its history says about it. It carries facts and no version: how they make one is up to whoever names the code, and ecosystems differ (see RepoVersion for the generic form).
func HeadRevision ¶ added in v0.4.0
HeadRevision reads the commit a repository's HEAD is at.