From 920ede9a5f07fad70b0cf6c9f481917c33488fc9 Mon Sep 17 00:00:00 2001 From: Jannik ZANDER Date: Sat, 14 May 2016 17:27:16 +0200 Subject: [PATCH] Add gtags to git hooks --- .git_template/hooks/post-checkout | 1 + .git_template/hooks/post-commit | 1 + .git_template/hooks/post-merge | 1 + .gitconfig | 1 + 4 files changed, 4 insertions(+) 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 -- 2.43.0