Start adding interfaces to read in partial trees

The same way "git-diff-tree" can limit its output to just a set of matches,
we can read in just a partial tree for comparison purposes.
This commit is contained in:
Linus Torvalds
2005-07-14 11:26:31 -07:00
parent d48a72f337
commit 0ca14a57f1
4 changed files with 54 additions and 7 deletions

View File

@ -278,7 +278,7 @@ int main(int argc, const char **argv)
tree = read_object_with_reference(sha1, "tree", &size, NULL);
if (!tree)
die("bad tree object %s", tree_name);
if (read_tree(tree, size, 1))
if (read_tree(tree, size, 1, NULL))
die("unable to read tree object %s", tree_name);
ret = diff_cache(active_cache, active_nr);