ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • 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

    1. Instatll git and gnu global(gtags) to your system
    2. make ~/.git_template/hooks directory
    3. move directory: cd ~/.git_template/hooks
    4. generate gtags file include below contents [1]
    5. generate post-checkout, post-commit, post-merge as [2] (same contents
    6. generate post-rewrite as [3]
    7. run command [4] to add default git template

    [1] gtags

    [2] post-checkout, post-commit, post-merge 

    [3] post-rewrite

    [4] command

Designed by Tistory.