summaryrefslogtreecommitdiff
path: root/git
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2020-04-27 09:43:04 +0200
committerUrbain Vaes <urbain@vaes.uk>2020-04-27 09:43:04 +0200
commitf63f95f7c7ce0444b1b442951ad96cf908ac5058 (patch)
tree215633a7b8549e34bac7ca40170086f3b29fcef3 /git
parent40f469c17357e8185f325aa94a6e90a8a79ff095 (diff)
Update configuration
Diffstat (limited to 'git')
-rwxr-xr-xgit/.git_template/hooks/ctags5
1 files changed, 2 insertions, 3 deletions
diff --git a/git/.git_template/hooks/ctags b/git/.git_template/hooks/ctags
index a52759d..fe27a19 100755
--- a/git/.git_template/hooks/ctags
+++ b/git/.git_template/hooks/ctags
@@ -1,7 +1,6 @@
#!/bin/sh
set -e
PATH="/usr/local/bin:$PATH"
-dir="$(git rev-parse --git-dir)"
trap 'rm -f "$dir/$$.tags"' EXIT
-git ls-files | ctags --tag-relative=yes -L - -f"$dir/$$.tags" --languages=-javascript,sql
-mv "$dir/$$.tags" "$dir/tags"
+git ls-files | ctags --tag-relative=yes -L - -f"$$.tags" --languages=-javascript,sql
+mv "$$.tags" "tags"