* Bug Report: git status triggers a file change event @ 2018-02-22 3:29 Raining Chain 2018-02-22 5:22 ` Jonathan Nieder 0 siblings, 1 reply; 4+ messages in thread From: Raining Chain @ 2018-02-22 3:29 UTC (permalink / raw) To: git 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. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Bug Report: git status triggers a file change event 2018-02-22 3:29 Bug Report: git status triggers a file change event Raining Chain @ 2018-02-22 5:22 ` Jonathan Nieder 2018-02-22 18:18 ` Stefan Beller 0 siblings, 1 reply; 4+ messages in thread From: Jonathan Nieder @ 2018-02-22 5:22 UTC (permalink / raw) To: Raining Chain; +Cc: git, git-for-windows +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. 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Bug Report: git status triggers a file change event 2018-02-22 5:22 ` Jonathan Nieder @ 2018-02-22 18:18 ` Stefan Beller 2018-02-23 12:18 ` Johannes Schindelin 0 siblings, 1 reply; 4+ messages in thread From: Stefan Beller @ 2018-02-22 18:18 UTC (permalink / raw) To: Jonathan Nieder; +Cc: Raining Chain, git, git-for-windows On Wed, Feb 21, 2018 at 9:22 PM, Jonathan Nieder <jrnieder@gmail.com> wrote: > +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? > > 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Bug Report: git status triggers a file change event 2018-02-22 18:18 ` Stefan Beller @ 2018-02-23 12:18 ` Johannes Schindelin 0 siblings, 0 replies; 4+ messages in thread From: Johannes Schindelin @ 2018-02-23 12:18 UTC (permalink / raw) To: Stefan Beller; +Cc: Jonathan Nieder, Raining Chain, git, git-for-windows Hi all, On Thu, 22 Feb 2018, Stefan Beller wrote: > On Wed, Feb 21, 2018 at 9:22 PM, Jonathan Nieder <jrnieder@gmail.com> wrote: > > +git-for-windows First of all, this is clearly not a Windows-specific problem, as the index file *is* updated, and that is simply the same behavior as on Linux/macOS. > > 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." Correct, because .git\index 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. Visual Studio Code most likely does not look at .git for worktree changes. As to the Typescript compiler: it should only look for .ts files, I would be very surprised if it was confused by .git's filesystem attributes changing! If tsw is still confused, try adding "exclude": [ ".git" ] to your tsconfig.json. Ciao, Johannes ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-02-23 12:18 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2018-02-22 3:29 Bug Report: git status triggers a file change event Raining Chain 2018-02-22 5:22 ` Jonathan Nieder 2018-02-22 18:18 ` Stefan Beller 2018-02-23 12:18 ` Johannes Schindelin
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).