Git operations that changes file system doesn't trigger FileWatcher

Viewed 52

I have an interesting problem, my system is a winforms, but also console app, that watchers for file changes in a folder.

Everything works great, but if that folder is a local git repo and there are operations that would change the files, the file watcher is not fired!

ex:

git restore 1.txt 

The above removes the change from the git working tree and will not trigger the filewatcher.

0 Answers
Related