Lines Matching refs:new_tree
145 new_tree = run_clang_format_and_save_to_tree(changed_lines,
150 print 'new tree:', new_tree
151 if old_tree == new_tree:
155 print_diff(old_tree, new_tree)
157 changed_files = apply_changes(old_tree, new_tree, force=opts.force,
416 def print_diff(old_tree, new_tree): argument
421 subprocess.check_call(['git', 'diff', old_tree, new_tree, '--'])
424 def apply_changes(old_tree, new_tree, force=False, patch_mode=False): argument
430 new_tree).rstrip('\0').split('\0')
447 subprocess.check_call(['git', 'checkout', '--patch', new_tree])
450 with temporary_index_file(new_tree):