Commit 8c1f9e4dc346d650e43252fe2a653d9dfeb85cf2

Vicent Marti 2010-11-29T18:07:17

Make the bitmasks for Index Entry flags public Signed-off-by: Vicent Marti <tanoku@gmail.com>

diff --git a/src/git/index.h b/src/git/index.h
index 910dd49..fd57106 100644
--- a/src/git/index.h
+++ b/src/git/index.h
@@ -13,6 +13,12 @@
  */
 GIT_BEGIN_DECL
 
+#define GIT_IDXENTRY_NAMEMASK  (0x0fff)
+#define GIT_IDXENTRY_STAGEMASK (0x3000)
+#define GIT_IDXENTRY_EXTENDED  (0x4000)
+#define GIT_IDXENTRY_VALID     (0x8000)
+#define GIT_IDXENTRY_STAGESHIFT 12
+
 /** Memory representation of an index file. */
 typedef struct git_index git_index;
 
diff --git a/src/index.h b/src/index.h
index 818f1f1..6584049 100644
--- a/src/index.h
+++ b/src/index.h
@@ -6,12 +6,6 @@
 #include "git/odb.h"
 #include "git/index.h"
 
-#define GIT_IDXENTRY_NAMEMASK  (0x0fff)
-#define GIT_IDXENTRY_STAGEMASK (0x3000)
-#define GIT_IDXENTRY_EXTENDED  (0x4000)
-#define GIT_IDXENTRY_VALID     (0x8000)
-#define GIT_IDXENTRY_STAGESHIFT 12
-
 struct git_index_tree {
 	char *name;