c++cgnu-global

How to use gtags -v to create index but skipping some subdirectories


I am trying to run 'gtags -v' to build index for my large code base. from this link: Emacs as an IDE for large C++ projects

My question is how can I tell gtags to skip walk into some directories (not necessary top level) "e.g. 'out', '.git', 'tools'?

Thank you.


Solution

  • I believe you can skip certain filetypes and directories with the --exclude argument.

    --exclude=*.txt,*.html

    Edit: It seems my answer works for ctags, but may not exist in gtags any more. Please see this page for a possible solution to your problem.