summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2005-07-14 20:19:19 (GMT)
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-14 20:19:19 (GMT)
commita74ba54bd15d63bfb962b584fa96937b06cdfc87 (patch)
treeba3c47aa661d260ac9c28b4ac6da48a2fd15b20c
parent3e58763542ab858ed2b2c7c704594f420df28c8b (diff)
downloadgit-a74ba54bd15d63bfb962b584fa96937b06cdfc87.zip
git-a74ba54bd15d63bfb962b584fa96937b06cdfc87.tar.gz
git-a74ba54bd15d63bfb962b584fa96937b06cdfc87.tar.bz2
Start using the partial tree reading in "git-diff-cache"
The reason I say "start using" is that we really should also limit the index checking by name - now we limit the tree object accesses by name, but we still check the whole index. Still, this should help.
-rw-r--r--diff-cache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/diff-cache.c b/diff-cache.c
index d78cbb5..be92222 100644
--- a/diff-cache.c
+++ b/diff-cache.c
@@ -278,12 +278,12 @@ 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, NULL))
+ if (read_tree(tree, size, 1, pathspec))
die("unable to read tree object %s", tree_name);
ret = diff_cache(active_cache, active_nr);
- diffcore_std(pathspec ? : NULL,
+ diffcore_std(pathspec,
detect_rename, diff_score_opt,
pickaxe, pickaxe_opts,
diff_break_opt,