Skip to content

Commit 7a79d7e

Browse files
committed
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
2 parents beed7e2 + ca598d5 commit 7a79d7e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

fsmonitor.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,9 @@ void refresh_fsmonitor(struct index_state *istate)
185185
for (i = 0; i < istate->cache_nr; i++)
186186
istate->cache[i]->ce_flags &= ~CE_FSMONITOR_VALID;
187187

188+
/* If we're going to check every file, ensure we save the results */
189+
istate->cache_changed |= FSMONITOR_CHANGED;
190+
188191
if (istate->untracked)
189192
istate->untracked->use_fsmonitor = 0;
190193
}

0 commit comments

Comments
 (0)