MCPcopy Create free account
hub / github.com/git/git / read_pipe_lines

Function read_pipe_lines

git-p4.py:396–407  ·  view source on GitHub ↗
(c, raw=False, *k, **kw)

Source from the content-addressed store, hash-verified

394
395
396def read_pipe_lines(c, raw=False, *k, **kw):
397 if verbose:
398 sys.stderr.write('Reading pipe: {}\n'.format(' '.join(c)))
399
400 p = subprocess.Popen(c, stdout=subprocess.PIPE, *k, **kw)
401 pipe = p.stdout
402 lines = pipe.readlines()
403 if not raw:
404 lines = [decode_text_stream(line) for line in lines]
405 if pipe.close() or p.wait():
406 die('Command failed: {}'.format(' '.join(c)))
407 return lines
408
409
410def p4_read_pipe_lines(c, *k, **kw):

Callers 10

p4_read_pipe_linesFunction · 0.85
getGitTagsFunction · 0.85
p4BranchesInGitFunction · 0.85
applyCommitMethod · 0.85
exportGitTagsMethod · 0.85
runMethod · 0.85
searchParentMethod · 0.85
runMethod · 0.85

Calls 3

decode_text_streamFunction · 0.85
dieFunction · 0.70
writeMethod · 0.45

Tested by

no test coverage detected