Lines Matching refs:new_tree
144 new_tree = run_clang_format_and_save_to_tree(changed_lines,
149 print 'new tree:', new_tree
150 if old_tree == new_tree:
154 print_diff(old_tree, new_tree)
156 changed_files = apply_changes(old_tree, new_tree, force=opts.force,
415 def print_diff(old_tree, new_tree): argument
420 subprocess.check_call(['git', 'diff', old_tree, new_tree, '--'])
423 def apply_changes(old_tree, new_tree, force=False, patch_mode=False): argument
429 new_tree).rstrip('\0').split('\0')
446 subprocess.check_call(['git', 'checkout', '--patch', new_tree])
449 with temporary_index_file(new_tree):