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() in94537c78a8(Move "read_tree()" to "tree.c"[...], 2005-04-22) andb12ec373b8([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>
This commit is contained in:
committed by
Junio C Hamano
parent
8de78218c5
commit
eefadd18e1
5
tree.h
5
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 */
|
||||
|
||||
Reference in New Issue
Block a user