list-objects: refactor to process_tree_contents
commit9202489174a110f82867edbac601f12480a4e284
authorMatthew DeVore <matvore@google.com>
Mon, 13 Aug 2018 18:14:29 +0000 (13 11:14 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 13 Aug 2018 22:17:32 +0000 (13 15:17 -0700)
treebef393e233dcc48abc2099a888423721105269b7
parentf447a499dbb8be3a9f76f8099938129c74fcbd32
list-objects: refactor to process_tree_contents

This will be used in a follow-up patch to reduce indentation needed when
invoking the logic conditionally. i.e. rather than:

if (foo) {
while (...) {
/* this is very indented */
}
}

we will have:

if (foo)
process_tree_contents(...);

Signed-off-by: Matthew DeVore <matvore@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
list-objects.c