summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorBrandon Williams <bmwill@google.com>2017-06-12 22:13:57 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-06-13 18:40:51 (GMT)
commit85ab50f938601cf874c841cee4c56f1d1dc8199e (patch)
treef6dac1cfcb02c6a32b46baf62acedd4d9be3a1e3 /builtin
parenta33e0b2a77d7010ba8bf0e025fffaf98f464a938 (diff)
downloadgit-85ab50f938601cf874c841cee4c56f1d1dc8199e.zip
git-85ab50f938601cf874c841cee4c56f1d1dc8199e.tar.gz
git-85ab50f938601cf874c841cee4c56f1d1dc8199e.tar.bz2
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>
Diffstat (limited to 'builtin')
-rw-r--r--builtin/ls-files.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/ls-files.c b/builtin/ls-files.c
index 0044abf..93e46ab 100644
--- a/builtin/ls-files.c
+++ b/builtin/ls-files.c
@@ -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++) {