Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should you use version control for ctags?

Tags:

git

ctags

I just setup a project with vim and ctags. Do ctags belong in my version control?

Thanks.

like image 447
dlaub3 Avatar asked Feb 25 '26 14:02

dlaub3


1 Answers

No you shouldn't, (as jthill said) because that's a file you build/generate from source.

To add to jthill comment, you can find a complete configuration example in "Supercharge your VIM into IDE with CTags"

ctags generate tag (index file of all the classes)

ctags -R --languages=ruby --exclude=.git --exclude=log . $(bundle list --paths)

But the .gitignore would always ignore those resulting tags.

Since you don't want to commit those files into the GIT index, add them to .gitignore or I like to add them to my global ~/.gitignore.

$ cat <<EOT >> ~/.gitignore
tags
gems.tags
EOT

See github/gitignore/Global/Tags.gitignore.

like image 175
VonC Avatar answered Feb 27 '26 03:02

VonC



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!