Lines Matching defs:tree
288 print("old tree: %s" % old_tree)
289 print("new tree: %s" % new_tree)
426 git_tool = "diff-tree"
508 """Create a new git tree with the given files from the working directory.
510 Returns the object ID (SHA-1) of the created tree."""
544 """Run clang-format on each file and save the result to a git tree.
546 Returns the object ID (SHA-1) of the created tree."""
563 "ls-tree",
602 """Create a tree object from the given input.
617 tree_id = run("git", "write-tree")
696 def temporary_index_file(tree=None):
699 index_path = create_temporary_index(tree)
712 def create_temporary_index(tree=None):
715 If `tree` is not None, use that as the tree to read in. Otherwise, an
719 if tree is None:
720 tree = "--empty"
721 run("git", "read-tree", "--index-output=" + path, tree)
727 # We use the porcelain 'diff' and not plumbing 'diff-tree' because the
741 # We use the porcelain 'diff' and not plumbing 'diff-tree' because the
769 "diff-tree",
794 # In patch mode, we could just as well create an index from the new tree
797 # tree as the index and checkout from new_tree, which gives the slightly