Skip to content
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: only enable it in non-bare repositories #3236

Merged
merged 1 commit into from
May 25, 2021

Conversation

dscho
Copy link
Member

@dscho dscho commented May 25, 2021

It does not make sense there, and it would spit out error messages.

The entire point of the FSMonitor is to monitor the worktree changes in
a more efficient manner than `lstat()`ing all worktree files every time
we refresh the index.

But if there is no worktree, FSMonitor has nothing to monitor.

So let's ignore if an FSMonitor is configured (e.g. in `~/.gitconfig`)
and we're running in a repository without worktree.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
@dscho dscho requested a review from jeffhostetler May 25, 2021 10:19
@dscho dscho added this to the Next release milestone May 25, 2021
@dscho dscho merged commit cc58341 into git-for-windows:main May 25, 2021
@dscho dscho deleted the no-fsmonitor-in-bare-repos branch May 25, 2021 11:37
git-for-windows-ci pushed a commit that referenced this pull request May 25, 2021
fsmonitor: only enable it in non-bare repositories
git-for-windows-ci pushed a commit that referenced this pull request May 25, 2021
fsmonitor: only enable it in non-bare repositories
git-for-windows-ci pushed a commit that referenced this pull request May 25, 2021
fsmonitor: only enable it in non-bare repositories
git-for-windows-ci pushed a commit that referenced this pull request May 25, 2021
fsmonitor: only enable it in non-bare repositories
git-for-windows-ci pushed a commit that referenced this pull request May 27, 2021
fsmonitor: only enable it in non-bare repositories
git-for-windows-ci pushed a commit that referenced this pull request May 27, 2021
fsmonitor: only enable it in non-bare repositories
git-for-windows-ci pushed a commit that referenced this pull request May 27, 2021
fsmonitor: only enable it in non-bare repositories
git-for-windows-ci pushed a commit that referenced this pull request May 28, 2021
fsmonitor: only enable it in non-bare repositories
git-for-windows-ci pushed a commit that referenced this pull request May 28, 2021
fsmonitor: only enable it in non-bare repositories
dscho added a commit to dscho/git that referenced this pull request May 28, 2021
…re-repos

fsmonitor: only enable it in non-bare repositories
git-for-windows-ci pushed a commit that referenced this pull request May 28, 2021
fsmonitor: only enable it in non-bare repositories
git-for-windows-ci pushed a commit that referenced this pull request May 28, 2021
fsmonitor: only enable it in non-bare repositories
git-for-windows-ci pushed a commit that referenced this pull request May 28, 2021
fsmonitor: only enable it in non-bare repositories
git-for-windows-ci pushed a commit that referenced this pull request May 28, 2021
fsmonitor: only enable it in non-bare repositories
git-for-windows-ci pushed a commit that referenced this pull request May 31, 2021
fsmonitor: only enable it in non-bare repositories
git-for-windows-ci pushed a commit that referenced this pull request May 31, 2021
fsmonitor: only enable it in non-bare repositories
git-for-windows-ci pushed a commit that referenced this pull request Jun 1, 2021
fsmonitor: only enable it in non-bare repositories
git-for-windows-ci pushed a commit that referenced this pull request Jun 1, 2021
fsmonitor: only enable it in non-bare repositories
git-for-windows-ci pushed a commit that referenced this pull request Jun 2, 2021
fsmonitor: only enable it in non-bare repositories
git-for-windows-ci pushed a commit that referenced this pull request Jun 2, 2021
fsmonitor: only enable it in non-bare repositories
git-for-windows-ci pushed a commit that referenced this pull request Jun 2, 2021
fsmonitor: only enable it in non-bare repositories
git-for-windows-ci pushed a commit that referenced this pull request Jun 2, 2021
fsmonitor: only enable it in non-bare repositories
git-for-windows-ci pushed a commit that referenced this pull request Jun 2, 2021
fsmonitor: only enable it in non-bare repositories
git-for-windows-ci pushed a commit that referenced this pull request Jun 2, 2021
fsmonitor: only enable it in non-bare repositories
git-for-windows-ci pushed a commit that referenced this pull request Jul 19, 2021
fsmonitor: only enable it in non-bare repositories
git-for-windows-ci pushed a commit that referenced this pull request Jul 19, 2021
fsmonitor: only enable it in non-bare repositories
git-for-windows-ci pushed a commit that referenced this pull request Jul 19, 2021
fsmonitor: only enable it in non-bare repositories
git-for-windows-ci pushed a commit that referenced this pull request Jul 19, 2021
fsmonitor: only enable it in non-bare repositories
dscho added a commit that referenced this pull request Jul 19, 2021
fsmonitor: only enable it in non-bare repositories
git-for-windows-ci pushed a commit that referenced this pull request Jul 21, 2021
fsmonitor: only enable it in non-bare repositories
git-for-windows-ci pushed a commit that referenced this pull request Jul 22, 2021
fsmonitor: only enable it in non-bare repositories
dscho added a commit that referenced this pull request Jul 23, 2021
fsmonitor: only enable it in non-bare repositories
git-for-windows-ci pushed a commit that referenced this pull request Jul 24, 2021
fsmonitor: only enable it in non-bare repositories
git-for-windows-ci pushed a commit that referenced this pull request Jul 24, 2021
fsmonitor: only enable it in non-bare repositories
git-for-windows-ci pushed a commit that referenced this pull request Jul 24, 2021
fsmonitor: only enable it in non-bare repositories
git-for-windows-ci pushed a commit that referenced this pull request Jul 26, 2021
fsmonitor: only enable it in non-bare repositories
git-for-windows-ci pushed a commit that referenced this pull request Jul 28, 2021
fsmonitor: only enable it in non-bare repositories
git-for-windows-ci pushed a commit that referenced this pull request Jul 28, 2021
fsmonitor: only enable it in non-bare repositories
git-for-windows-ci pushed a commit that referenced this pull request Jul 29, 2021
fsmonitor: only enable it in non-bare repositories
git-for-windows-ci pushed a commit that referenced this pull request Jul 29, 2021
fsmonitor: only enable it in non-bare repositories
git-for-windows-ci pushed a commit that referenced this pull request Jul 29, 2021
fsmonitor: only enable it in non-bare repositories
dscho added a commit that referenced this pull request Aug 2, 2021
fsmonitor: only enable it in non-bare repositories
git-for-windows-ci pushed a commit that referenced this pull request Aug 2, 2021
fsmonitor: only enable it in non-bare repositories
git-for-windows-ci pushed a commit that referenced this pull request Aug 2, 2021
fsmonitor: only enable it in non-bare repositories
git-for-windows-ci pushed a commit that referenced this pull request Aug 2, 2021
fsmonitor: only enable it in non-bare repositories
git-for-windows-ci pushed a commit that referenced this pull request Aug 2, 2021
fsmonitor: only enable it in non-bare repositories
git-for-windows-ci pushed a commit that referenced this pull request Aug 2, 2021
fsmonitor: only enable it in non-bare repositories
dscho added a commit to dscho/git that referenced this pull request Aug 3, 2021
…re-repos

fsmonitor: only enable it in non-bare repositories
git-for-windows-ci pushed a commit that referenced this pull request Aug 3, 2021
fsmonitor: only enable it in non-bare repositories
dscho added a commit that referenced this pull request Aug 3, 2021
fsmonitor: only enable it in non-bare repositories
dscho added a commit that referenced this pull request Aug 3, 2021
fsmonitor: only enable it in non-bare repositories
git-for-windows-ci pushed a commit that referenced this pull request Aug 4, 2021
fsmonitor: only enable it in non-bare repositories
dscho added a commit that referenced this pull request Aug 4, 2021
fsmonitor: only enable it in non-bare repositories
dscho added a commit to dscho/git that referenced this pull request Aug 5, 2021
…r-in-bare-repos

In preparation for updating to FSMonitor v4, let's revert this.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants