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

Function system

git-p4.py:449–457  ·  view source on GitHub ↗
(cmd, ignore_error=False, *k, **kw)

Source from the content-addressed store, hash-verified

447
448
449def system(cmd, ignore_error=False, *k, **kw):
450 if verbose:
451 sys.stderr.write("executing {}\n".format(
452 ' '.join(cmd) if isinstance(cmd, list) else cmd))
453 retcode = subprocess.call(cmd, *k, **kw)
454 if retcode and not ignore_error:
455 raise subprocess.CalledProcessError(retcode, cmd)
456
457 return retcode
458
459
460def p4_system(cmd, *k, **kw):

Callers 10

edit_templateMethod · 0.85
applyCommitMethod · 0.85
importP4LabelsMethod · 0.85
sync_origin_onlyMethod · 0.85
runMethod · 0.85
rebaseMethod · 0.85
runMethod · 0.85
cmd_syncFunction · 0.85
cmd_dropcachesFunction · 0.85

Calls 1

writeMethod · 0.45

Tested by 2

cmd_syncFunction · 0.68
cmd_dropcachesFunction · 0.68