通过病原体将标签生成到不同位置 [英] Generating tags to different location by pathogen

查看:76
本文介绍了通过病原体将标签生成到不同位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用病原体来组织我的vim插件.我将插件从github克隆到vimbundles目录中.这样,更新它们就很简单.

I use pathogen for organizing my vim plugins. I git clone the plugins from github into the vimbundles directory. This way it is simple to update them.

我对病原体产生的标签有疑问.如果插件的代码中未包含标签,则病原体会通过调用pathogen#helptags()生成标签.标签将生成到插件的doc文件夹中.这些文件然后在git存储库中被视为未跟踪.

I have problem with the tags generated by pathogen. If the plugin does not have the tags included in its code, pathogen generates them by calling pathogen#helptags(). The tags are generated into the doc folder of the plugin. These files then figure as untracked in git repository.

您知道一种如何将标签生成到其他位置的方法吗?所有标签都可以放在同一位置,目的是不将其生成到插件所在的目录中.能说服病原体这样做吗?

Do you know a way how to generate tags into a different location? All tags could be on the same place, the goal is not to have them generated to the directory where the plugins live. Can pathogen be convinced to do so?

推荐答案

我的.git/config中有这一行:

I have this line i my .git/config:

[status]
   showUntrackedFiles = no

现在,每次我运行git status时,未显示未跟踪的文件. 由于git不会检查目录中的每个文件,而只会检查存储库中存在的文件,因此这也可以加快速度.

And now every time i run git status untracked files are not displayed. This also speeds up things a bit since git does not check every single file in directory but only those existing in repository.

有关更多信息,请访问 http://git-scm.com/docs/git-config 并转到status.showUntrackedFiles.

For more info go to http://git-scm.com/docs/git-config and go to status.showUntrackedFiles.

修改: 忘了提及我在bundle目录中也有子模块,并且在最上面的存储库配置中添加了提到的选项.

Forgot to mention that I also have submodules in bundle directory and I add mentioned option to top-most repository config.

这篇关于通过病原体将标签生成到不同位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆