Initial version
This commit is contained in:
6
hooks/ctags
Executable file
6
hooks/ctags
Executable 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
3
hooks/post-checkout
Executable file
@@ -0,0 +1,3 @@
|
||||
#! /bin/sh
|
||||
.git/hooks/ctags > /dev/null 2>&1 &
|
||||
|
3
hooks/post-commit
Executable file
3
hooks/post-commit
Executable file
@@ -0,0 +1,3 @@
|
||||
#! /bin/sh
|
||||
.git/hooks/ctags > /dev/null 2>&1 &
|
||||
|
3
hooks/post-merge
Executable file
3
hooks/post-merge
Executable file
@@ -0,0 +1,3 @@
|
||||
#! /bin/sh
|
||||
.git/hooks/ctags > /dev/null 2>&1 &
|
||||
|
6
hooks/post-rewrite
Executable file
6
hooks/post-rewrite
Executable file
@@ -0,0 +1,6 @@
|
||||
#! /bin/sh
|
||||
|
||||
case "$1" in
|
||||
rebase) exec .git/hooks/post-merge ;;
|
||||
esac
|
||||
|
Reference in New Issue
Block a user