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

Method map_in_client

git-p4.py:2877–2891  ·  view source on GitHub ↗

Return the relative location in the client where this depot file should live. Returns "" if the file should not be mapped in the client.

(self, depot_path)

Source from the content-addressed store, hash-verified

2875 self.client_spec_path_cache[depotFile] = b''
2876
2877 def map_in_client(self, depot_path):
2878 """Return the relative location in the client where this depot file
2879 should live.
2880
2881 Returns "" if the file should not be mapped in the client.
2882 """
2883
2884 if gitConfigBool("core.ignorecase"):
2885 depot_path = depot_path.lower()
2886
2887 if depot_path in self.client_spec_path_cache:
2888 return self.client_spec_path_cache[depot_path]
2889
2890 die("Error: %s is not found in client spec path" % depot_path)
2891 return ""
2892
2893
2894def cloneExcludeCallback(option, opt_str, value, parser):

Callers 3

stripRepoPathMethod · 0.80
inClientSpecMethod · 0.80

Calls 2

gitConfigBoolFunction · 0.85
dieFunction · 0.70

Tested by

no test coverage detected