MCPcopy Create free account
hub / github.com/openshift/origin / HasVendoredCodeChanges

Method HasVendoredCodeChanges

tools/rebasehelpers/util/git.go:118–122  ·  view source on GitHub ↗

HasVendoredCodeChanges verifies if the modified file is from Godeps/_workspace/ or vendor/ directories.

()

Source from the content-addressed store, hash-verified

116// HasVendoredCodeChanges verifies if the modified file is from Godeps/_workspace/
117// or vendor/ directories.
118func (f File) HasVendoredCodeChanges() bool {
119 return strings.HasPrefix(string(f), "Godeps/_workspace") ||
120 strings.HasPrefix(string(f), "vendor") ||
121 strings.HasPrefix(string(f), "pkg/build/vendor")
122}
123
124// HasGodepsChanges verifies if the modified file is Godeps/Godeps.json.
125func (f File) HasGodepsChanges() bool {

Calls

no outgoing calls

Tested by

no test coverage detected