Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SupportedHosts = map[string]int{
"bitbucket.org": 3,
"code.google.com": 3,
"github.com": 3,
"golang.org": 3,
"google.golang.org": 2,
"gopkg.in": 2,
"k8s.io": 2,
"speter.net": 2,
}
supportedHosts maps source hosts to the number of path segments that represent the account/repo for that host. This is necessary because we can't tell just by looking at an import path whether the repo is identified by the first 2 or 3 path segments.
If dependencies are introduced from new hosts, they'll need to be added here.
View Source
var UpstreamSummaryPattern = regexp.MustCompile(`UPSTREAM: (revert: [a-f0-9]{7,}: )?(([\w\.-]+\/[\w-\.-]+)?: )?(\d+:|<carry>:|<drop>:)`)
Functions ¶
func CommitDate ¶ added in v1.1.5
func CurrentRev ¶ added in v1.1.5
func IsAncestor ¶ added in v1.1.3
Types ¶
type Commit ¶
func CommitsBetween ¶
func NewCommitFromOnelineLog ¶
func (Commit) DeclaredUpstreamRepo ¶
func (Commit) DeclaresUpstreamChange ¶
func (Commit) GodepsReposChanged ¶
func (Commit) HasGodepsChanges ¶
func (Commit) HasNonGodepsChanges ¶
func (Commit) MatchesUpstreamSummaryPattern ¶
Click to show internal directories.
Click to hide internal directories.