tools/translation/helper/sanity_check.py
def list_files_in_repository(repo_path, pattern):
  """Lists all files matching given pattern in the given git repository"""
  # This works because git does its own glob expansion even though there is no
  # shell to do it.
  output = subprocess.check_output([GIT, 'ls-files', '--', pattern],
                                   cwd=repo_path).decode('utf-8')
  return output.strip().splitlines()
Lists all files matching given pattern in the given git repository
Lists all files matching given pattern in the given git repository
Lists all files matching given pattern in the given git repository
def list_files_in_repository(repo_path, pattern):
  output = subprocess.check_output([GIT, 'ls-files', '--', pattern],
                                   cwd=repo_path).decode('utf-8')
  return output.strip().splitlines()
def list_files_in_repository ( repo_path , pattern ) : output = subprocess . check_output ( [ GIT , 'ls-files' , '--' , pattern ] , cwd = repo_path ) . decode ( 'utf-8' ) return output . strip ( ) . splitlines ( )
Lists all files matching given pattern in the given git repository
Lists all files matching given pattern in the given git repository
"""Lists all files matching given pattern in the given git repository""" # This works because git does its own glob expansion even though there is no # shell to do it.
repo_path
pattern