tree-diff.c: move S_DIFFTREE_IFXMIN_NEQ define from cache.h

S_DIFFTREE_IFXMIN_NEQ is *only* used in tree-diff.c, so there is no point exposing it in cache.h. Move it to tree-diff.c. Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Elijah Newren committed Apr 22, 2023 at 20:17 UTC 23a517e4156714c3f8c8a4e36beccfee1d76ff1f
2 files changed +13 -15
cache.h
-15
@@ -10,21 +10,6 @@
10 #include "object.h"
11 #include "statinfo.h"
12
13 -/*
14 - * Some mode bits are also used internally for computations.
15 - *
16 - * They *must* not overlap with any valid modes, and they *must* not be emitted
17 - * to outside world - i.e. appear on disk or network. In other words, it's just
18 - * temporary fields, which we internally use, but they have to stay in-house.
19 - *
20 - * ( such approach is valid, as standard S_IF* fits into 16 bits, and in Git
21 - * codebase mode is `unsigned int` which is assumed to be at least 32 bits )
22 - */
23 -
24 -/* used internally in tree-diff */
25 -#define S_DIFFTREE_IFXMIN_NEQ 0x80000000
26 -
27 -
13 /*
14 * Basic data structures for the directory cache
15 */
tree-diff.c
+13
@@ -6,6 +6,19 @@
6 #include "diffcore.h"
7 #include "tree.h"
8
9 +/*
10 + * Some mode bits are also used internally for computations.
11 + *
12 + * They *must* not overlap with any valid modes, and they *must* not be emitted
13 + * to outside world - i.e. appear on disk or network. In other words, it's just
14 + * temporary fields, which we internally use, but they have to stay in-house.
15 + *
16 + * ( such approach is valid, as standard S_IF* fits into 16 bits, and in Git
17 + * codebase mode is `unsigned int` which is assumed to be at least 32 bits )
18 + */
19 +
20 +#define S_DIFFTREE_IFXMIN_NEQ 0x80000000
21 +
22 /*
23 * internal mode marker, saying a tree entry != entry of tp[imin]
24 * (see ll_diff_tree_paths for what it means there)