parameters: (root, patches)
docstring: Apply list of patches to the destination Git repository.
  
      Keyword arguments:
      root -- the root directory of the destination Git repository
      patches -- list of patch files relative to the root
docstring_summary: Apply list of patches to the destination Git repository.
docstring_tokens: Apply list of patches to the destination Git repository .
function: def apply_patches(root, patches):
      """Apply list of patches to the destination Git repository.
  
      Keyword arguments:
      root -- the root directory of the destination Git repository
      patches -- list of patch files relative to the root
      """
      os.chdir(root)
      for patch in patches:
          subprocess.check_output(["git", "apply", patch])
function_tokens: def apply_patches ( root , patches ) : os . chdir ( root ) for patch in patches : subprocess . check_output ( [ "git" , "apply" , patch ] )