From: Jannik ZANDER Date: Sat, 14 May 2016 15:27:16 +0000 (+0200) Subject: Add gtags to git hooks X-Git-Url: https://git.zndr.dk/?a=commitdiff_plain;h=920ede9a5f07fad70b0cf6c9f481917c33488fc9;p=dotfiles.git Add gtags to git hooks --- diff --git a/.git_template/hooks/post-checkout b/.git_template/hooks/post-checkout index 84f17ed..745c5f9 100755 --- a/.git_template/hooks/post-checkout +++ b/.git_template/hooks/post-checkout @@ -1,2 +1,3 @@ #!/bin/sh .git/hooks/ctags >/dev/null 2>&1 & +.git/hooks/gtags >/dev/null 2>&1 & diff --git a/.git_template/hooks/post-commit b/.git_template/hooks/post-commit index 84f17ed..745c5f9 100755 --- a/.git_template/hooks/post-commit +++ b/.git_template/hooks/post-commit @@ -1,2 +1,3 @@ #!/bin/sh .git/hooks/ctags >/dev/null 2>&1 & +.git/hooks/gtags >/dev/null 2>&1 & diff --git a/.git_template/hooks/post-merge b/.git_template/hooks/post-merge index 84f17ed..745c5f9 100755 --- a/.git_template/hooks/post-merge +++ b/.git_template/hooks/post-merge @@ -1,2 +1,3 @@ #!/bin/sh .git/hooks/ctags >/dev/null 2>&1 & +.git/hooks/gtags >/dev/null 2>&1 & diff --git a/.gitconfig b/.gitconfig index e18437e..71d9aa6 100644 --- a/.gitconfig +++ b/.gitconfig @@ -111,6 +111,7 @@ cobr = checkout -b root = rev-parse --show-toplevel ctags = "!sh -c '[ -f .git/hooks/ctags ] || git init; .git/hooks/ctags' git-ctags" + gtags = "!sh -c '[ -f .git/hooks/gtags ] || git init; .git/hooks/gtags' git-gtags" [include] # Local/private config goes in the include path = ~/.gitconfig_local