summaryrefslogtreecommitdiff
path: root/src/git
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2010-11-29 18:07:17 +0200
committerVicent Marti <tanoku@gmail.com>2010-11-29 18:07:17 +0200
commit8c1f9e4dc346d650e43252fe2a653d9dfeb85cf2 (patch)
treee81ff2d54318ca82240029043d9eb968832866eb /src/git
parent91e8894150a84235e827e418c6a942753215897c (diff)
downloadlibgit2-8c1f9e4dc346d650e43252fe2a653d9dfeb85cf2.tar.gz
Make the bitmasks for Index Entry flags public
Signed-off-by: Vicent Marti <tanoku@gmail.com>
Diffstat (limited to 'src/git')
-rw-r--r--src/git/index.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/git/index.h b/src/git/index.h
index 910dd498b..fd5710622 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;