How to ignore –dirty in Git Submodules with Pathogen

It took some googling, but finally I found the secret:

http://www.nils-haldenwang.de/frameworks-and-tools/git/how-to-ignore-changes-in-git-submodules

[submodule "bundle/fugitive"]
path = bundle/fugitive
url = git://github.com/tpope/vim-fugitive.git

Just add a single line to it and be happy:

[submodule "bundle/fugitive"]
path = bundle/fugitive
url = git://github.com/tpope/vim-fugitive.git
ignore = dirty

Just as easy as that.

The reason is that pathgen generates tags. The tags change the directory. And that’s the story.


Comments

Popular Posts