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

Re: Bug Report: git status triggers a file change event

From
Stefan Beller <sbeller@google.com>
Date
Feb 22, 2018, 18:18 UTC
Message-ID
<CAGZ79kZBrG7uQ5KOrpdkkhzet7chJhxVsKjTnVMQTrSGFAMZhw@mail.gmail.com>
In-Reply-To
<20180222052227.GA133592@aiede.svl.corp.google.com>
On Wed, Feb 21, 2018 at 9:22 PM, Jonathan Nieder <jrnieder@gmail.com> wrote:
Show 16 quoted lines
> +git-for-windows
> Hi,
>
> Raining Chain wrote:
>
>> On Windows 10, git version 2.16.2.windows.1, running the command
>>
>> git status
>>
>> will trigger a file change event to file C:\myPath\.git  "Attributes changed."
>>
>> This causes problems when using scripts that detect file changes such
>> as tsc -w (Typescript compiler) and using softwares that regularly
>> call git status such as VisualStudioCode.
>>
>> Thanks.

Does https://github.com/git/git/commit/27344d6a6c8056664966e11acf674e5da6dd7ee3 help?

Show 6 quoted lines
>
> Can you say more about how "tsc -w" reacts to the file change?  Is there
> a way to tell it to exclude particular files from the files it watches?
>
> Thanks,
> Jonathan
Previous: Jonathan NiederNext: Johannes Schindelin
Message 3 of 4 in “Bug Report: git status triggers a file change event”
  1. Raining ChainFeb 22, 2018
  2. Jonathan NiederFeb 22, 2018
  3. Stefan BellerFeb 22, 2018
  4. Johannes SchindelinFeb 23, 2018

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.