Lines Matching defs:new_tree
284 new_tree = run_clang_format_and_save_to_tree(
289 print("new tree: %s" % new_tree)
291 if old_tree == new_tree:
297 return print_diff(old_tree, new_tree)
299 return print_diffstat(old_tree, new_tree)
302 old_tree, new_tree, force=opts.force, patch_mode=opts.patch
725 def print_diff(old_tree, new_tree):
731 # We also only print modified files since `new_tree` only contains the files
735 ["git", "diff", "--diff-filter=M", "--exit-code", old_tree, new_tree]
739 def print_diffstat(old_tree, new_tree):
745 # We also only print modified files since `new_tree` only contains the files
756 new_tree,
761 def apply_changes(old_tree, new_tree, force=False, patch_mode=False):
762 """Apply the changes in `new_tree` to the working directory.
775 new_tree,
797 # tree as the index and checkout from new_tree, which gives the slightly
801 subprocess.run(["git", "checkout", "--patch", new_tree], check=True)
804 with temporary_index_file(new_tree):