tools/translation/helper/git_helper.py
def git_add(files, repo_root):
  """Adds relative paths given in files to the current CL."""
  # Upload in batches in order to not exceed command line length limit.
  BATCH_SIZE = 50
  added_count = 0
  while added_count < len(files):
    batch = files[added_count:added_count + BATCH_SIZE]
    command = [GIT, 'add'] + batch
    subprocess.check_call(command, cwd=repo_root)
    added_count += len(batch)
Adds relative paths given in files to the current CL.
Adds relative paths given in files to the current CL.
Adds relative paths given in files to the current CL .
def git_add(files, repo_root):
  BATCH_SIZE = 50
  added_count = 0
  while added_count < len(files):
    batch = files[added_count:added_count + BATCH_SIZE]
    command = [GIT, 'add'] + batch
    subprocess.check_call(command, cwd=repo_root)
    added_count += len(batch)
def git_add ( files , repo_root ) : BATCH_SIZE = 50 added_count = 0 while added_count < len ( files ) : batch = files [ added_count : added_count + BATCH_SIZE ] command = [ GIT , 'add' ] + batch subprocess . check_call ( command , cwd = repo_root ) added_count += len ( batch )
Adds relative paths given in files to the current CL.
Adds relative paths given in files to the current CL .
"""Adds relative paths given in files to the current CL.""" # Upload in batches in order to not exceed command line length limit.
files
repo_root