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>
Jeff King committed
Aug 31, 2023 at 02:19 UTC
acd13d1eec93e714add1b3f94c8c175d6a8171cb
2 files changed
+1
-3
tree-walk.h
-2
@@ -6,8 +6,6 @@
6
struct index_state;
7
struct repository;
8
9
-#define MAX_TRAVERSE_TREES 8
10
-
9
/**
10
* The tree walking API is used to traverse and inspect trees.
11
*/
unpack-trees.h
+1
-1
@@ -7,7 +7,7 @@
7
#include "string-list.h"
8
#include "tree-walk.h"
9
10
-#define MAX_UNPACK_TREES MAX_TRAVERSE_TREES
10
+#define MAX_UNPACK_TREES 8
11
12
struct cache_entry;
13
struct unpack_trees_options;