Skip to content

Commit acd13d1

Browse files
peffgitster
authored andcommitted
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 5290d45 (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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 59c4c7d commit acd13d1

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

tree-walk.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
struct index_state;
77
struct repository;
88

9-
#define MAX_TRAVERSE_TREES 8
10-
119
/**
1210
* The tree walking API is used to traverse and inspect trees.
1311
*/

unpack-trees.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include "string-list.h"
88
#include "tree-walk.h"
99

10-
#define MAX_UNPACK_TREES MAX_TRAVERSE_TREES
10+
#define MAX_UNPACK_TREES 8
1111

1212
struct cache_entry;
1313
struct unpack_trees_options;

0 commit comments

Comments
 (0)