t4008: abstract away SHA-1-specific constants
[gitweb.git] / fsmonitor.c
index eb4e6422562c89686f1bc9666b031a7ce7083a6e..ed3d1a074d60309063d16044bfd83beb78ef0e9d 100644 (file)
@@ -185,6 +185,9 @@ void refresh_fsmonitor(struct index_state *istate)
                for (i = 0; i < istate->cache_nr; i++)
                        istate->cache[i]->ce_flags &= ~CE_FSMONITOR_VALID;
 
+               /* If we're going to check every file, ensure we save the results */
+               istate->cache_changed |= FSMONITOR_CHANGED;
+
                if (istate->untracked)
                        istate->untracked->use_fsmonitor = 0;
        }