checkout: tone down the "forked status" diagnostic messages
[gitweb.git] / read-cache.c
index e45f4b3d61c2982ca20c910a7fc11c5bd89204be..22d7b462454463fb149d02ac62415fc63aca7672 100644 (file)
@@ -1176,6 +1176,16 @@ int discard_index(struct index_state *istate)
        return 0;
 }
 
+int unmerged_index(struct index_state *istate)
+{
+       int i;
+       for (i = 0; i < istate->cache_nr; i++) {
+               if (ce_stage(istate->cache[i]))
+                       return 1;
+       }
+       return 0;
+}
+
 #define WRITE_BUFFER_SIZE 8192
 static unsigned char write_buffer[WRITE_BUFFER_SIZE];
 static unsigned long write_buffer_len;