我正在使用 Sublime Text Git插件(带有 ST3),但我不需要或不想要它添加到状态栏(在 UI 底部)的东西。我似乎无法关闭它。在 Git.sublime-settings 中,我将 statusbar_branch
和 statusbar_status
都设置为 false,这已经删除了一些但不是全部插件的状态栏输出。我仍然得到“Comparing against: HEAD”。有什么方法可以禁用它吗?
最佳答案
状态栏中的“Comparing against HEAD”消息实际上不是由 Git 插件生成的,而是由 GitGutter 生成的。
// Determines whether GitGutter will show informations in the status bar
// Set "none" to hide these informations
// Set "default" to show in the status bar what you are comparing
// against, how many lines have been inserted or modified and how many regions
// have been deleted.
// Set "all" to also show on what branch you are
"show_status": "default",
默认配置是在状态栏中显示来自 GitGutter 的信息。
如果您想禁用它,只需将 show_status
设置为 none
,如注释所示。
关于git - 有什么方法可以阻止 Sublime Text 的 Git 插件弄乱状态栏吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29168845/