define file index stage flags
diff --git a/lib/fileindex.c b/lib/fileindex.c
index d6c8219..fd6801e 100644
--- a/lib/fileindex.c
+++ b/lib/fileindex.c
@@ -37,6 +37,7 @@
/* got_fileindex_entry flags */
#define GOT_FILEIDX_F_PATH_LEN 0x00000fff
+#define GOT_FILEIDX_F_STAGE 0x0000f000
#define GOT_FILEIDX_F_NOT_FLUSHED 0x00010000
#define GOT_FILEIDX_F_NO_BLOB 0x00020000
#define GOT_FILEIDX_F_NO_COMMIT 0x00040000
diff --git a/lib/got_lib_fileindex.h b/lib/got_lib_fileindex.h
index 6e547e2..b66cb0c 100644
--- a/lib/got_lib_fileindex.h
+++ b/lib/got_lib_fileindex.h
@@ -57,6 +57,12 @@ struct got_fileindex_entry {
char *path;
};
+/* Modifications explicitly staged for commit. */
+#define GOT_FILEIDX_STAGE_NONE 0
+#define GOT_FILEIDX_STAGE_MODIFY 1
+#define GOT_FILEIDX_STAGE_ADD 2
+#define GOT_FILEIDX_STAGE_DELETE 3
+
struct got_fileindex;
RB_HEAD(got_fileindex_tree, got_fileindex_entry);