Skip to content

Commit

Permalink
fixup! fsmonitor: introduce core.useBuiltinFSMonitor to call the da…
Browse files Browse the repository at this point in the history
…emon via IPC

Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
  • Loading branch information
jeffhostetler committed Jun 21, 2021
1 parent 166bb2c commit 84c35ff
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions fsmonitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,10 @@ void refresh_fsmonitor(struct index_state *istate)
trace_printf_key(&trace_fsmonitor, "refresh fsmonitor");

if (r->settings.use_builtin_fsmonitor > 0) {
query_success = istate->fsmonitor_last_update &&
!fsmonitor_ipc__send_query(istate->fsmonitor_last_update,
&query_result);
query_success = !fsmonitor_ipc__send_query(
istate->fsmonitor_last_update ?
istate->fsmonitor_last_update : "builtin:fake",
&query_result);
if (query_success) {
/*
* The response contains a series of nul terminated
Expand Down

0 comments on commit 84c35ff

Please sign in to comment.