It is customary for vim modules to add /doc/tags to gitignore to avoid the submodule being marked as dirty when helptags are generated when the plugin is added as a submodule using the native vim plugin system.
To reproduce:
git submodule add https://github.com/jamessan/vim-gnupg.git vim/.vim/pack/plugins/start/vim-gnupg
git commit -a -m "Add vim-gnupg plugin"
git status
Note that the status is clean.
Then generate the helptags and run status again:
vim -c "helptags ALL" -c q
git status
modified: vim/.vim/pack/plugins/start/vim-gnupg (untracked content)
Now the status reports untracked content because the /doc/tags dir has been generated.
It is customary for vim modules to add /doc/tags to gitignore to avoid the submodule being marked as dirty when helptags are generated when the plugin is added as a submodule using the native vim plugin system.
To reproduce:
Note that the status is clean.
Then generate the helptags and run status again:
Now the status reports untracked content because the /doc/tags dir has been generated.
Git diff reports: