]> git.zndr.dk Git - dotfiles.git/commitdiff
Add gtags to git hooks
authorJannik ZANDER <jannikz@gmail.com>
Sat, 14 May 2016 15:27:16 +0000 (17:27 +0200)
committerJannik ZANDER <jannikz@gmail.com>
Sat, 14 May 2016 15:27:50 +0000 (17:27 +0200)
.git_template/hooks/post-checkout
.git_template/hooks/post-commit
.git_template/hooks/post-merge
.gitconfig

index 84f17ed6052dbc777a73cc9ed50483d2656f0252..745c5f915693b5d5f8a04a707eb47b1dd6e2949d 100755 (executable)
@@ -1,2 +1,3 @@
 #!/bin/sh
 .git/hooks/ctags >/dev/null 2>&1 &
+.git/hooks/gtags >/dev/null 2>&1 &
index 84f17ed6052dbc777a73cc9ed50483d2656f0252..745c5f915693b5d5f8a04a707eb47b1dd6e2949d 100755 (executable)
@@ -1,2 +1,3 @@
 #!/bin/sh
 .git/hooks/ctags >/dev/null 2>&1 &
+.git/hooks/gtags >/dev/null 2>&1 &
index 84f17ed6052dbc777a73cc9ed50483d2656f0252..745c5f915693b5d5f8a04a707eb47b1dd6e2949d 100755 (executable)
@@ -1,2 +1,3 @@
 #!/bin/sh
 .git/hooks/ctags >/dev/null 2>&1 &
+.git/hooks/gtags >/dev/null 2>&1 &
index e18437e0a41f1c70ab721180d10778189080fdb4..71d9aa6bdc437f94c73dc682f881c6db70857353 100644 (file)
        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