jamessan / vim-gnupg

This script implements transparent editing of gpg encrypted files.
http://www.vim.org/scripts/script.php?script_id=3645
724 stars 72 forks source link

Please add /doc/tags to .gitignore #113

Closed hkbakke closed 4 years ago

hkbakke commented 4 years ago

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.

Git diff reports:

diff --git a/vim/.vim/pack/plugins/start/vim-gnupg b/vim/.vim/pack/plugins/start/vim-gnupg
--- a/vim/.vim/pack/plugins/start/vim-gnupg
+++ b/vim/.vim/pack/plugins/start/vim-gnupg
@@ -1 +1 @@
-Subproject commit f663d0e857bd88cb39c16ca45c37a27488648562
+Subproject commit f663d0e857bd88cb39c16ca45c37a27488648562-dirty