Skip to content

fix(#1720): .git watch only FETCH_HEAD, HEAD, HEAD.lock, config, index #1732

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

Merged
merged 2 commits into from
Nov 12, 2022

Conversation

alex-courtis
Copy link
Member

@alex-courtis alex-courtis commented Nov 7, 2022

fixes #1720

supersede #1725

.git watches only for useful files.

Use case: git operations that don't affect files, such as stage, commit etc.

Tested:

  • add
  • restore --staged
  • commit
  • revert
  • init - not functional but not a regression

@alex-courtis alex-courtis changed the title fix(#1720): .git watch only HEAD, config and index fix(#1720): .git watch only FETCH_HEAD, HEAD, HEAD.lock, config, index Nov 7, 2022
@alex-courtis
Copy link
Member Author

soaking ~week

@alex-courtis alex-courtis merged commit bcb2a5a into master Nov 12, 2022
@alex-courtis alex-courtis deleted the 1720-simplify-dot-git-watcher branch December 16, 2022 04:37
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.

Infinite Git Refresh Loop When Running Watchman
1 participant