mirror of
https://github.com/git/git
synced 2024-11-05 18:59:29 +00:00
Make the p4 data/command cache configurable through the --cache-debug commandline option.
Signed-off-by: Simon Hausmann <simon@lst.de>
This commit is contained in:
parent
a0f22e996c
commit
59f1d2b52d
1 changed files with 4 additions and 1 deletions
|
@ -29,7 +29,8 @@
|
|||
globalPrefix = globalPrefix[:-1]
|
||||
|
||||
try:
|
||||
opts, args = getopt.getopt(sys.argv[1:], "", [ "branch=", "detect-branches", "changesfile=", "silent", "known-branches=" ])
|
||||
opts, args = getopt.getopt(sys.argv[1:], "", [ "branch=", "detect-branches", "changesfile=", "silent", "known-branches=",
|
||||
"cache-debug" ])
|
||||
except getopt.GetoptError:
|
||||
print "fixme, syntax error"
|
||||
sys.exit(1)
|
||||
|
@ -46,6 +47,8 @@
|
|||
elif o == "--known-branches":
|
||||
for branch in open(a).readlines():
|
||||
knownBranches.add(branch[:-1])
|
||||
elif o == "--cache-debug":
|
||||
cacheDebug = True
|
||||
|
||||
if len(args) == 0 and len(globalPrefix) != 0:
|
||||
if not silent:
|
||||
|
|
Loading…
Reference in a new issue