Skip to content

Commit 23a517e

Browse files
newrengitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 592fc5b commit 23a517e

File tree

2 files changed

+13
-15
lines changed

2 files changed

+13
-15
lines changed

cache.h

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,6 @@
1010
#include "object.h"
1111
#include "statinfo.h"
1212

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-
2813
/*
2914
* Basic data structures for the directory cache
3015
*/

tree-diff.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,19 @@
66
#include "diffcore.h"
77
#include "tree.h"
88

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+
922
/*
1023
* internal mode marker, saying a tree entry != entry of tp[imin]
1124
* (see ll_diff_tree_paths for what it means there)

0 commit comments

Comments
 (0)