summaryrefslogtreecommitdiff
path: root/diff-cache.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2005-07-14 18:26:31 (GMT)
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-14 18:26:31 (GMT)
commit0ca14a57f159fc9d0923dbb122705dd8d6a45488 (patch)
treee0c7f2bb000535b6bb919e5b3b1deae9242290bc /diff-cache.c
parentd48a72f337fa8edfb7a09e620e75cbbb2a5fe836 (diff)
downloadgit-0ca14a57f159fc9d0923dbb122705dd8d6a45488.zip
git-0ca14a57f159fc9d0923dbb122705dd8d6a45488.tar.gz
git-0ca14a57f159fc9d0923dbb122705dd8d6a45488.tar.bz2
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.
Diffstat (limited to 'diff-cache.c')
-rw-r--r--diff-cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/diff-cache.c b/diff-cache.c
index c435844..d78cbb5 100644
--- a/diff-cache.c
+++ b/diff-cache.c
@@ -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);