Update/Generate GTAGS with git update
Why GTAGS(GNU Global)?
Find better than ctags
Find faster than ctags/cscope
Build faster thant ctags/cscope
Integrate better with emacs
Why git and gtags
git is good scm tool used everywhere :)
gtags made good reference with many languages
git only maintains original source code
gtags can update partially - git use diff for commit!
How to setup
Instatll git and gnu global(gtags) to your system
make ~/.git_template/hooks directory
move directory: cd ~/.git_template/hooks
make gtags file include below contents
make post-checkout, post-commit, post-merge as below (same contents)
make post-rewrite as below
run below command to add default git template.
refer from Effortless Ctags with Git










