tools/git/for-all-touched-files.py
def GitShell(args, ignore_return=False):
  """A shell invocation suitable for communicating with git. Returns
  output as list of lines, raises exception on error.
  """
  job = subprocess.Popen(args,
                         shell=True,
                         stdout=subprocess.PIPE,
                         stderr=subprocess.STDOUT)
  (out, err) = job.communicate()
  if job.returncode != 0 and not ignore_return:
    print(out)
    raise Exception("Error %d running command %s" % (
        job.returncode, args))
  return out.split('\n')
A shell invocation suitable for communicating with git. Returns
  output as list of lines, raises exception on error.
  
A shell invocation suitable for communicating with git. Returns
output as list of lines, raises exception on error.
A shell invocation suitable for communicating with git . Returns output as list of lines raises exception on error .
def GitShell(args, ignore_return=False):
  job = subprocess.Popen(args,
                         shell=True,
                         stdout=subprocess.PIPE,
                         stderr=subprocess.STDOUT)
  (out, err) = job.communicate()
  if job.returncode != 0 and not ignore_return:
    print(out)
    raise Exception("Error %d running command %s" % (
        job.returncode, args))
  return out.split('\n')
def GitShell ( args , ignore_return = False ) : job = subprocess . Popen ( args , shell = True , stdout = subprocess . PIPE , stderr = subprocess . STDOUT ) ( out , err ) = job . communicate ( ) if job . returncode != 0 and not ignore_return : print ( out ) raise Exception ( "Error %d running command %s" % ( job . returncode , args ) ) return out . split ( '\n' )
A shell invocation suitable for communicating with git.
A shell invocation suitable for communicating with git .
"""A shell invocation suitable for communicating with git. Returns
  output as list of lines, raises exception on error.
  """
args
ignore_return