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

Function wildcard_encode

git-p4.py:1443–1451  ·  view source on GitHub ↗

Encode %xx coded wildcards into P4 coding.

(path)

Source from the content-addressed store, hash-verified

1441
1442
1443def wildcard_encode(path):
1444 """Encode %xx coded wildcards into P4 coding."""
1445
1446 # do % first to avoid double-encoding the %s introduced here
1447 path = path.replace("%", "%25") \
1448 .replace("*", "%2A") \
1449 .replace("#", "%23") \
1450 .replace("@", "%40")
1451 return path
1452
1453
1454def wildcard_present(path):

Callers 11

p4_integrateFunction · 0.85
p4_syncFunction · 0.85
p4_deleteFunction · 0.85
p4_editFunction · 0.85
p4_revertFunction · 0.85
p4_reopenFunction · 0.85
p4_moveFunction · 0.85
p4_typeFunction · 0.85
getP4OpenedTypeFunction · 0.85
get_diff_descriptionMethod · 0.85
findShadowedFilesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected