Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHistory ¶
GetHistory makes a (cached) call to gitiles to obtain the ConsoleGitInfo for the given url, commitish and limit.
func Resolve ¶
Resolve resolves a commitish to a git commit hash.
This operation will assumed to be either fully local (in the case that commitish is already a git-hash-looking-thing), or local to the datastore (in the case that commitish is a fully-qualified-ref, ref tables are populated by a backend cron).
If commitish is some other pattern (e.g. "HEAD~"), this will return the commitish as-is.
`resolved` will be true if `commit` is, in fact, a git hash; if it's false, then higher layers should be careful about using it as part of a cache key.
Types ¶
This section is empty.