Lines Matching refs:new_tree
156 new_tree = run_clang_format_and_save_to_tree(changed_lines,
162 new_tree = run_clang_format_and_save_to_tree(changed_lines,
167 print 'new tree:', new_tree
168 if old_tree == new_tree:
172 print_diff(old_tree, new_tree)
174 changed_files = apply_changes(old_tree, new_tree, force=opts.force,
458 def print_diff(old_tree, new_tree): argument
467 subprocess.check_call(['git', 'diff', '--diff-filter=M', old_tree, new_tree,
471 def apply_changes(old_tree, new_tree, force=False, patch_mode=False): argument
478 new_tree).rstrip('\0').split('\0')
495 subprocess.check_call(['git', 'checkout', '--patch', new_tree])
498 with temporary_index_file(new_tree):