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.
This commit is contained in:
Linus Torvalds 2005-07-14 13:19:19 -07:00
Родитель 3e58763542
Коммит a74ba54bd1
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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,