git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: use core.fsmonitor instead

From
JHJeff Hostetler <git@jeffhostetler.com>
Date
Apr 27, 2022, 20:41 UTC
Message-ID
<c4397971-5ff5-d339-cfb5-f19993852207@jeffhostetler.com>
In-Reply-To
<CAMTWFOGU1ojFLE0v6cyyOh3tRRNmT8Nc9aWW=RLS4aHwJ5QDmw@mail.gmail.com>
On 4/26/22 6:43 PM, David Calkins wrote:
Show 17 quoted lines
> I installed Git v2.36.0 for Windows (64-bit) and when running commands
> I get the following output.
> 
> hint: core.useBuiltinFSMonitor will be deprecated soon; use
> core.fsmonitor instead
> hint: Disable this message with "git config advice.useCoreFSMonitorConfig false"
> 
> I opened the system Git config file and updated it to have the below.
> 
>   useBuiltinFSMonitor = false
> 
> After this change I no longer get that output.  However, the hint
> indicated that I should "use core.fsmonitor instead".  Is there
> something else I should be doing besides just telling it not to
> useBuildtinFSMonitor?  How do I tell it to "use core.fsmonitor
> instead"?
> 
Yes, the wording of that message could use some work.

Git for Windows 2.34 and 2.35 included an experimental version of the builtin FSMonitor feature that was centered around `core.useBuiltinFSMonitor`. We are in the process of upstreaming the FSMonitor feature into core Git. The first half of it is included in core Git 2.36 and centered around the `core.fsmonitor` config variable instead of the former config variable. Git for Windows 2.36 recognizes both config variables, but warns that the former is deprecated.

Setting
	git config core.fsmonitor true
will quiet the warning.

We are phasing out the old config variable as soon as we can retire the "experimental" label from the feature in GFW, but felt that we could not just delete it and switch because Windows users sometimes have more than one version of Git installed. For example, VS ships with a hidden version that may be ahead or behind the version you have installed explicitly in Program Files.

If you know that you only have one version of Git installed, you can unset the old config value. But if you have more than one, leave both set to true.

Sorry for the confusion. Jeff

Previous: Junio C Hamano
Message 3 of 3 in “use core.fsmonitor instead”
  1. David CalkinsApr 26, 2022
  2. Junio C HamanoApr 26, 2022
  3. Jeff HostetlerApr 27, 2022

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.