tree: convert read_tree to take an index parameter
Signed-off-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
a33e0b2a77
commit
85ab50f938
@ -460,7 +460,7 @@ void overlay_tree_on_cache(const char *tree_name, const char *prefix)
|
||||
PATHSPEC_PREFER_CWD, prefix, matchbuf);
|
||||
} else
|
||||
memset(&pathspec, 0, sizeof(pathspec));
|
||||
if (read_tree(tree, 1, &pathspec))
|
||||
if (read_tree(tree, 1, &pathspec, &the_index))
|
||||
die("unable to read tree entries %s", tree_name);
|
||||
|
||||
for (i = 0; i < active_nr; i++) {
|
||||
|
||||
Reference in New Issue
Block a user