Skip to content

Commit fa7afc2

Browse files
jeffhostetlerdscho
authored andcommitted
Merge branch 'revert-pre-v4-fsmonitor-experimental' into revert-pre-v4-fsmonitor
2 parents 8735530 + 49e51c0 commit fa7afc2

File tree

3 files changed

+6
-14
lines changed

3 files changed

+6
-14
lines changed

Documentation/config/core.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ git by avoiding unnecessary scanning of files that have not changed.
7171
+
7272
See the "fsmonitor-watchman" section of linkgit:githooks[5].
7373
+
74-
Note: The value of this config setting is ignored if the (experimental)
74+
Note: The value of this config setting is ignored if the
7575
built-in file system monitor is enabled (see `core.useBuiltinFSMonitor`).
7676

7777
core.fsmonitorHookVersion::
@@ -91,7 +91,7 @@ Note: The value of this config setting is ignored if the
9191
built-in file system monitor is enabled (see `core.useBuiltinFSMonitor`).
9292

9393
core.useBuiltinFSMonitor::
94-
(EXPERIMENTAL) If set to true, enable the built-in file system monitor
94+
If set to true, enable the built-in file system monitor
9595
daemon for this working directory (linkgit:git-fsmonitor--daemon[1]).
9696
+
9797
Like hook-based file system monitors, the built-in file system monitor

Documentation/git-fsmonitor--daemon.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ git-fsmonitor--daemon(1)
33

44
NAME
55
----
6-
git-fsmonitor--daemon - (EXPERIMENTAL) A Built-in File System Monitor
6+
git-fsmonitor--daemon - A Built-in File System Monitor
77

88
SYNOPSIS
99
--------
@@ -16,9 +16,6 @@ SYNOPSIS
1616
DESCRIPTION
1717
-----------
1818

19-
NOTE! This command is still only an experiment, subject to change dramatically
20-
(or even to be abandoned).
21-
2219
A daemon to watch the working directory for file and directory
2320
changes using platform-specific file system notification facilities.
2421

repo-settings.c

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@
22
#include "config.h"
33
#include "repository.h"
44
#include "midx.h"
5-
#include "fsmonitor-ipc.h"
6-
#include "fsmonitor-settings.h"
5+
#include "compat/fsmonitor/fsm-listen.h"
76

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

109
void prepare_repo_settings(struct repository *r)
1110
{
12-
int value, feature_many_files = 0;
11+
int value;
1312
char *strval;
1413

1514
if (r->settings.initialized)
@@ -63,7 +62,6 @@ void prepare_repo_settings(struct repository *r)
6362
UPDATE_DEFAULT_BOOL(r->settings.core_multi_pack_index, 1);
6463

6564
if (!repo_config_get_bool(r, "feature.manyfiles", &value) && value) {
66-
feature_many_files = 1;
6765
UPDATE_DEFAULT_BOOL(r->settings.index_version, 4);
6866
UPDATE_DEFAULT_BOOL(r->settings.core_untracked_cache, UNTRACKED_CACHE_WRITE);
6967
}
@@ -72,11 +70,8 @@ void prepare_repo_settings(struct repository *r)
7270
r->settings.fetch_write_commit_graph = value;
7371
UPDATE_DEFAULT_BOOL(r->settings.fetch_write_commit_graph, 0);
7472

75-
if (!repo_config_get_bool(r, "feature.experimental", &value) && value) {
73+
if (!repo_config_get_bool(r, "feature.experimental", &value) && value)
7674
UPDATE_DEFAULT_BOOL(r->settings.fetch_negotiation_algorithm, FETCH_NEGOTIATION_SKIPPING);
77-
if (feature_many_files && fsmonitor_ipc__is_supported())
78-
fsm_settings__set_ipc(r);
79-
}
8075

8176
/* Hack for test programs like test-dump-untracked-cache */
8277
if (ignore_untracked_cache_config)

0 commit comments

Comments
 (0)