Skip to content

Commit f59cf9b

Browse files
committed
fixup! Enable the built-in FSMonitor as an experimental feature
This avoids an `#ifdef` as suggested by Jeff Hostetler (but I managed to miss the suggestion before the PR was merged...). Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 7c3432a commit f59cf9b

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

repo-settings.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#include "config.h"
33
#include "repository.h"
44
#include "midx.h"
5+
#include "fsmonitor-ipc.h"
56

67
#define UPDATE_DEFAULT_BOOL(s,v) do { if (s == -1) { s = v; } } while(0)
78

@@ -73,13 +74,9 @@ void prepare_repo_settings(struct repository *r)
7374

7475
if (!repo_config_get_bool(r, "feature.experimental", &value) && value) {
7576
UPDATE_DEFAULT_BOOL(r->settings.fetch_negotiation_algorithm, FETCH_NEGOTIATION_SKIPPING);
76-
#ifdef HAVE_FSMONITOR_DAEMON_BACKEND
77-
if (feature_many_files)
77+
if (feature_many_files && fsmonitor_ipc__is_supported())
7878
UPDATE_DEFAULT_BOOL(r->settings.use_builtin_fsmonitor,
7979
1);
80-
#else
81-
(void)feature_many_files;
82-
#endif
8380
}
8481

8582
/* Hack for test programs like test-dump-untracked-cache */

0 commit comments

Comments
 (0)