git

package
v0.0.0-...-678bb0e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2017 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHistory

func GetHistory(c context.Context, url, commitish string, limit int) (*milo.ConsoleGitInfo, error)

GetHistory makes a (cached) call to gitiles to obtain the ConsoleGitInfo for the given url, commitish and limit.

func Resolve

func Resolve(c context.Context, url, commitish string) (commit string, resolved bool, err error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL