Lines Matching refs:new_tree
141 new_tree = run_clang_format_and_save_to_tree(changed_lines,
146 print 'new tree:', new_tree
147 if old_tree == new_tree:
151 print_diff(old_tree, new_tree)
153 changed_files = apply_changes(old_tree, new_tree, force=opts.force,
412 def print_diff(old_tree, new_tree):
417 subprocess.check_call(['git', 'diff', old_tree, new_tree, '--'])
420 def apply_changes(old_tree, new_tree, force=False, patch_mode=False):
421 """Apply the changes in `new_tree` to the working directory.
426 new_tree).rstrip('\0').split('\0')
439 # tree as the index and checkout from new_tree, which gives the slightly
443 subprocess.check_call(['git', 'checkout', '--patch', new_tree])
446 with temporary_index_file(new_tree):