summaryrefslogtreecommitdiff
path: root/tree.h
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2021-03-20 22:37:46 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-03-20 23:09:25 (GMT)
commiteefadd18e10fc0c4c808faa8ee077f375f28050c (patch)
tree284702ab16dcd9b9f8a26f8e211f8d8e0751ef59 /tree.h
parent8de78218c53480ded696c751f922b0622697a8b0 (diff)
downloadgit-eefadd18e10fc0c4c808faa8ee077f375f28050c.zip
git-eefadd18e10fc0c4c808faa8ee077f375f28050c.tar.gz
git-eefadd18e10fc0c4c808faa8ee077f375f28050c.tar.bz2
tree.c API: move read_tree() into builtin/ls-files.c
Since the read_tree() API was added around the same time as read_tree_recursive() in 94537c78a82 (Move "read_tree()" to "tree.c"[...], 2005-04-22) and b12ec373b8e ([PATCH] Teach read-tree about commit objects, 2005-04-20) things have gradually migrated over to the read_tree_recursive() version. Now builtin/ls-files.c is the last user of this code, let's move all the relevant code there. This allows for subsequent simplification of it, and an eventual move to read_tree_recursive(). Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'tree.h')
-rw-r--r--tree.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/tree.h b/tree.h
index 3eb0484..6b0b1dc 100644
--- a/tree.h
+++ b/tree.h
@@ -38,9 +38,4 @@ int read_tree_recursive(struct repository *r,
const char *base, int baselen,
int stage, const struct pathspec *pathspec,
read_tree_fn_t fn, void *context);
-
-int read_tree(struct repository *r, struct tree *tree,
- int stage, struct pathspec *pathspec,
- struct index_state *istate);
-
#endif /* TREE_H */