Eclipse 会不断重新检查我的 git 存储库。如何关闭此功能或更改间隔?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/27726449/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Eclipse keeps re-checking my git repositories. How do I turn this off or change the interval?
提问by Martin Carney
Whenever a long-running process in Eclipse (such as cleaning + rebuilding a large project), I see new processes such as "Updating git status for repository foo" pop up, waiting for my long-running process to finish.
每当 Eclipse 中的一个长时间运行的进程(例如清理 + 重建一个大项目)时,我都会看到诸如“更新仓库 foo 的 git 状态”之类的新进程,等待我的长时间运行的进程完成。
Example:
例子:
I would like to turn off these updates, since I use a different app for managing my git repositories. I would also like to know how to change the frequency of these updates, if they are indeed being run at regular intervals.
我想关闭这些更新,因为我使用不同的应用程序来管理我的 git 存储库。我还想知道如何更改这些更新的频率,如果它们确实是定期运行的。
I tried searching "git" in the Preferences, but didn't find any obvious culprits. I unchecked three options that looked like they mightbe related, but the updates still occur. The options I unchecked are:
我尝试在首选项中搜索“git”,但没有找到任何明显的罪魁祸首。我取消了三个看起来可能相关的选项,但更新仍然发生。我取消选中的选项是:
- Team > Git > Projects > Automatically share projects located in a Git repository
- Team > Git > Projects > Track each branch's imported projects and restore on checkout
- Team > Git > Synchronize > Always launch fetch before synchronization
- 团队 > Git > 项目 > 自动共享位于 Git 存储库中的项目
- 团队 > Git > 项目 > 跟踪每个分支的导入项目并在结帐时恢复
- 团队 > Git > 同步 > 在同步之前总是启动获取
回答by aramadia
Try right clicking your project, and choose team > disconnect
尝试右键单击您的项目,然后选择团队 > 断开连接
回答by Martin Carney
Found it. It's in:
找到了。在里面:
Team > Git, not any of Team > Git > [sub-category]
Uncheck "Refresh resources when index changes" under "Automatic Refresh" to disable the refreshes.
团队 > Git,不是任何团队 > Git > [子类别]
取消选中“自动刷新”下的“索引更改时刷新资源”以禁用刷新。
It doesn't seem to be run on a regular interval, but rather based on file changes.
它似乎不是定期运行,而是基于文件更改。
Even after disabling these options, eclipse keeps updating my repos. This doesn't solve the problem.
即使在禁用这些选项后,eclipse 也会不断更新我的存储库。这并不能解决问题。