summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3e58763)
raw | patch | inline | side by side (parent: 3e58763)
author | Linus Torvalds <torvalds@g5.osdl.org> | |
Thu, 14 Jul 2005 20:19:19 +0000 (13:19 -0700) | ||
committer | Linus Torvalds <torvalds@g5.osdl.org> | |
Thu, 14 Jul 2005 20:19:19 +0000 (13:19 -0700) |
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.
index checking by name - now we limit the tree object accesses by name,
but we still check the whole index.
Still, this should help.
diff-cache.c | patch | blob | history |
diff --git a/diff-cache.c b/diff-cache.c
index d78cbb5d658dc17de965b0b81a36ad7e24ada202..be9222288fb6a6ecfdd4c91f6e386e9baf1c8f60 100644 (file)
--- a/diff-cache.c
+++ b/diff-cache.c
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,