MCPcopy Index your code
hub / github.com/git/git / isPathWanted

Method isPathWanted

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

Source from the content-addressed store, hash-verified

2987 print("checkpoint finished: " + out)
2988
2989 def isPathWanted(self, path):
2990 for p in self.cloneExclude:
2991 if p.endswith("/"):
2992 if p4PathStartsWith(path, p):
2993 return False
2994 # "-//depot/file1" without a trailing "/" should only exclude "file1", but not "file111" or "file1_dir/file2"
2995 elif path.lower() == p.lower():
2996 return False
2997 for p in self.depotPaths:
2998 if p4PathStartsWith(path, decode_path(p)):
2999 return True
3000 return False
3001
3002 def extractFilesFromCommit(self, commit, shelved=False, shelved_cl=0):
3003 files = []

Callers 2

Calls 2

p4PathStartsWithFunction · 0.85
decode_pathFunction · 0.85

Tested by

no test coverage detected