tree-walk: drop MAX_TRAVERSE_TREES macro
commitacd13d1eec93e714add1b3f94c8c175d6a8171cb
authorJeff King <peff@peff.net>
Thu, 31 Aug 2023 06:19:16 +0000 (31 02:19 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 31 Aug 2023 22:51:07 +0000 (31 15:51 -0700)
tree18efb475274680d5feb371efc60b0ac38d297bf2
parent59c4c7d1cbd23eaade955e61f8f1d5d964a9a727
tree-walk: drop MAX_TRAVERSE_TREES macro

Since the previous commit dropped the hard-coded limit in
traverse_trees(), we don't need this macro there anymore (the code can
handle any number of trees in parallel).

We do define MAX_UNPACK_TREES using MAX_TRAVERSE_TREES, due to
5290d45134 (tree-walk.c: break circular dependency with unpack-trees,
2020-02-01). So we can just directly define that as "8" now; we know
traverse_trees() can handle whatever we throw at it.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
tree-walk.h
unpack-trees.h