Browse Source

Merge branch 'bp/fsmonitor-prime-index'

The index file is updated to record the fsmonitor section after a
full scan was made, to avoid wasting the effort that has already
spent.

* bp/fsmonitor-prime-index:
  fsmonitor: force index write after full scan
maint
Junio C Hamano 7 years ago
parent
commit
7a79d7e9fb
  1. 3
      fsmonitor.c

3
fsmonitor.c

@ -185,6 +185,9 @@ void refresh_fsmonitor(struct index_state *istate) @@ -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;
}

Loading…
Cancel
Save