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

Function write_pipe

git-p4.py:328–339  ·  view source on GitHub ↗
(c, stdin, *k, **kw)

Source from the content-addressed store, hash-verified

326
327
328def write_pipe(c, stdin, *k, **kw):
329 if verbose:
330 sys.stderr.write('Writing pipe: {}\n'.format(' '.join(c)))
331
332 p = subprocess.Popen(c, stdin=subprocess.PIPE, *k, **kw)
333 pipe = p.stdin
334 val = pipe.write(stdin)
335 pipe.close()
336 if p.wait():
337 die('Command failed: {}'.format(' '.join(c)))
338
339 return val
340
341
342def p4_write_pipe(c, stdin, *k, **kw):

Callers 1

p4_write_pipeFunction · 0.85

Calls 2

dieFunction · 0.70
writeMethod · 0.45

Tested by

no test coverage detected