read-cache: mark new entries for split index
[gitweb.git] / read-cache.c
index 90a3f09db97be0849a96c7beb6256a2c2a0d2731..52a27b30a4027b10b8464af82604efb38954e57f 100644 (file)
@@ -38,7 +38,8 @@ static struct cache_entry *refresh_cache_entry(struct cache_entry *ce,
 #define CACHE_EXT_LINK 0x6c696e6b        /* "link" */
 
 /* changes that can be kept in $GIT_DIR/index (basically all extensions) */
-#define EXTMASK (RESOLVE_UNDO_CHANGED | CACHE_TREE_CHANGED)
+#define EXTMASK (RESOLVE_UNDO_CHANGED | CACHE_TREE_CHANGED | \
+                CE_ENTRY_ADDED)
 
 struct index_state the_index;
 static const char *alternate_index_output;