MCPcopy Create free account
hub / github.com/git/git / hasBranchPrefix

Method hasBranchPrefix

git-p4.py:3400–3407  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

3398 return inClientSpec
3399
3400 def hasBranchPrefix(self, path):
3401 if not self.branchPrefixes:
3402 return True
3403 hasPrefix = [p for p in self.branchPrefixes
3404 if p4PathStartsWith(path, p)]
3405 if not hasPrefix and self.verbose:
3406 print('Ignoring file outside of prefix: {0}'.format(path))
3407 return hasPrefix
3408
3409 def findShadowedFiles(self, files, change):
3410 """Perforce allows you commit files and directories with the same name,

Callers 2

findShadowedFilesMethod · 0.95
commitMethod · 0.95

Calls 1

p4PathStartsWithFunction · 0.85

Tested by

no test coverage detected