@@ -254,37 +254,8 @@ void refresh_fsmonitor(struct index_state *istate)
254
254
trace_printf_key (& trace_fsmonitor , "refresh fsmonitor" );
255
255
256
256
if (fsm_mode == FSMONITOR_MODE_IPC ) {
257
- query_success = !fsmonitor_ipc__send_query (
258
- istate -> fsmonitor_last_update ?
259
- istate -> fsmonitor_last_update : "builtin:fake" ,
260
- & query_result );
261
- if (query_success ) {
262
- /*
263
- * The response contains a series of nul terminated
264
- * strings. The first is the new token.
265
- *
266
- * Use `char *buf` as an interlude to trick the CI
267
- * static analysis to let us use `strbuf_addstr()`
268
- * here (and only copy the token) rather than
269
- * `strbuf_addbuf()`.
270
- */
271
- buf = query_result .buf ;
272
- strbuf_addstr (& last_update_token , buf );
273
- bol = last_update_token .len + 1 ;
274
- } else {
275
- /*
276
- * The builtin daemon is not available on this
277
- * platform -OR- we failed to get a response.
278
- *
279
- * Generate a fake token (rather than a V1
280
- * timestamp) for the index extension. (If
281
- * they switch back to the hook API, we don't
282
- * want ambiguous state.)
283
- */
284
- strbuf_addstr (& last_update_token , "builtin:fake" );
285
- }
286
-
287
- goto apply_results ;
257
+ /* TODO */
258
+ return ;
288
259
}
289
260
290
261
assert (fsm_mode == FSMONITOR_MODE_HOOK );
@@ -350,7 +321,6 @@ void refresh_fsmonitor(struct index_state *istate)
350
321
query_success ? "success" : "failure" );
351
322
}
352
323
353
- apply_results :
354
324
/* a fsmonitor process can return '/' to indicate all entries are invalid */
355
325
if (query_success && query_result .buf [bol ] != '/' ) {
356
326
/* Mark all entries returned by the monitor as dirty */
0 commit comments