-
Update/Generate GTAGS With Git Update카테고리 없음 2019. 7. 17. 12:00
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
- generate gtags file include below contents [1]
- generate post-checkout, post-commit, post-merge as [2] (same contents
- generate post-rewrite as [3]
- run command [4] to add default git template
[1] gtags
[2] post-checkout, post-commit, post-merge
[3] post-rewrite
[4] command