tools/translation/helper/git_helper.py
def list_grds_in_repository(repo_path):
  """Returns a list of all the grd files in the current git repository."""
  # This works because git does its own glob expansion even though there is no
  # shell to do it.
  # TODO(meacer): This should use list_grds_in_repository() from the internal
  #               translate.py.
  output = subprocess.check_output([GIT, 'ls-files', '--', '*.grd'],
                                   cwd=repo_path)
  # Need to decode because Python3 returns subprocess output as bytes.
  return output.decode('utf8').strip().splitlines()
Returns a list of all the grd files in the current git repository.
Returns a list of all the grd files in the current git repository.
Returns a list of all the grd files in the current git repository .
def list_grds_in_repository(repo_path):
  output = subprocess.check_output([GIT, 'ls-files', '--', '*.grd'],
                                   cwd=repo_path)
  return output.decode('utf8').strip().splitlines()
def list_grds_in_repository ( repo_path ) : output = subprocess . check_output ( [ GIT , 'ls-files' , '--' , '*.grd' ] , cwd = repo_path ) return output . decode ( 'utf8' ) . strip ( ) . splitlines ( )
Returns a list of all the grd files in the current git repository.
Returns a list of all the grd files in the current git repository .
"""Returns a list of all the grd files in the current git repository.""" # This works because git does its own glob expansion even though there is no # shell to do it. # TODO(meacer): This should use list_grds_in_repository() from the internal #               translate.py. # Need to decode because Python3 returns subprocess output as bytes.
repo_path