Initial version

This commit is contained in:
2017-11-29 14:15:07 +01:00
commit da6a1ca0eb
7 changed files with 108 additions and 0 deletions

6
hooks/ctags Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/sh
mkdir .git/tags_lock 2>/dev/null || exit 0
trap "rmdir .git/tags_lock; rm .git/tags.$$" EXIT
ctags --tag-relative -R -f .git/tags.$$ --exclude=.git --languages=-sql,-css,-html,-javascript
mv .git/tags.$$ .git/tags

3
hooks/post-checkout Executable file
View File

@@ -0,0 +1,3 @@
#! /bin/sh
.git/hooks/ctags > /dev/null 2>&1 &

3
hooks/post-commit Executable file
View File

@@ -0,0 +1,3 @@
#! /bin/sh
.git/hooks/ctags > /dev/null 2>&1 &

3
hooks/post-merge Executable file
View File

@@ -0,0 +1,3 @@
#! /bin/sh
.git/hooks/ctags > /dev/null 2>&1 &

6
hooks/post-rewrite Executable file
View File

@@ -0,0 +1,6 @@
#! /bin/sh
case "$1" in
rebase) exec .git/hooks/post-merge ;;
esac