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

@ -17,7 +17,7 @@ static int unpack_tree(unsigned char *sha1)
buffer = read_object_with_reference(sha1, "tree", &size, NULL);
if (!buffer)
return -1;
ret = read_tree(buffer, size, stage);
ret = read_tree(buffer, size, stage, NULL);
free(buffer);
return ret;
}