reserve some file entry mode bits for a staged file type
diff --git a/lib/got_lib_fileindex.h b/lib/got_lib_fileindex.h
index 31f1e04..3b31707 100644
--- a/lib/got_lib_fileindex.h
+++ b/lib/got_lib_fileindex.h
@@ -37,6 +37,9 @@ struct got_fileindex_entry {
uint16_t mode;
#define GOT_FILEIDX_MODE_FILE_TYPE 0x000f
+#define GOT_FILEIDX_MODE_FILE_TYPE_ONDISK 0x0003
+#define GOT_FILEIDX_MODE_FILE_TYPE_STAGED 0x000c
+#define GOT_FILEIDX_MODE_FILE_TYPE_STAGED_SHIFT 2
#define GOT_FILEIDX_MODE_REGULAR_FILE 1
#define GOT_FILEIDX_MODE_SYMLINK 2
#define GOT_FILEIDX_MODE_BAD_SYMLINK 3