-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FSMonitor: deepening a directory causes confusing events #3456
FSMonitor: deepening a directory causes confusing events #3456
Conversation
dbc19ff
to
87ec897
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Do we want to rename the first commit to be a proper fixup!
commit?
I suppose I should make it a proper "fixup!" commit. Let me give that a try. |
78ffc22
to
a7b7c45
Compare
This fails on Windows because we do not get trailing slashes on events and cannot tell whether a path is a file or directory in the daemon callback. So the code in the client that marks everything in the cone needs to be revisited. |
Signed-off-by: Jeff Hostetler <[email protected]>
a7b7c45
to
5be8f5c
Compare
5be8f5c
to
2a5a011
Compare
a89e24f
to
ee44d7d
Compare
I am still seeing this:
(The same failure happens in the Now, the biggest complication is: Git v2.33.1 was released yesterday, without much in the way of warning (at least that I was aware of). I had hoped to stabilize FSMonitor in Git for Windows before the next Git for Windows release... |
WRT the test failures, yeah, I'm still tinkering with the tests. It's in the untracked-cache and not the fsmonitor code, so perhaps I've accidentally created a test for the untracked-cache on Windows. I'm going to take another look at this, but might just decide to split the code and close the fsmonitor-related stuff here and create another issue/pr to look at the untracked-cache. |
ee44d7d
to
6193af1
Compare
Signed-off-by: Jeff Hostetler <[email protected]>
Create unit tests to move a directory. Verify that `git status` gives the same result with and without FSMonitor enabled. NEEDSWORK: This test exposes a bug in the untracked-cache on Windows when FSMonitor is disabled. These are commented out for the moment. Signed-off-by: Jeff Hostetler <[email protected]>
6193af1
to
4c3206e
Compare
Yay, the build succeeded!!! I'll only wait for a moment until the current snapshot has been built, and then merge this. |
FSMonitor: deepening a directory causes confusing events
FSMonitor: deepening a directory causes confusing events
FSMonitor: deepening a directory causes confusing events
FSMonitor: deepening a directory causes confusing events
FSMonitor: deepening a directory causes confusing events
FSMonitor: deepening a directory causes confusing events
FSMonitor: deepening a directory causes confusing events
FSMonitor: deepening a directory causes confusing events
FSMonitor: deepening a directory causes confusing events
FSMonitor: deepening a directory causes confusing events
FSMonitor: deepening a directory causes confusing events
FSMonitor: deepening a directory causes confusing events
FSMonitor: deepening a directory causes confusing events
FSMonitor: deepening a directory causes confusing events
FSMonitor: deepening a directory causes confusing events
FSMonitor: deepening a directory causes confusing events
FSMonitor: deepening a directory causes confusing events
FSMonitor: deepening a directory causes confusing events
FSMonitor: deepening a directory causes confusing events
FSMonitor: deepening a directory causes confusing events
FSMonitor: deepening a directory causes confusing events
FSMonitor: deepening a directory causes confusing events
FSMonitor: deepening a directory causes confusing events
FSMonitor: deepening a directory causes confusing events
FSMonitor: deepening a directory causes confusing events
FSMonitor: deepening a directory causes confusing events
FSMonitor: deepening a directory causes confusing events
FSMonitor: deepening a directory causes confusing events
…onitor-part5 FSMonitor: deepening a directory causes confusing events
Moving a directory can cause confusion. Items immediately within the directory are invalidated and re-scanned, but deeper items are not. This causes stale/confusing status to be reported.