Permalink
Browse files

Auto-update ctags with git

  • Loading branch information...
1 parent 4f008b0 commit ed96f5c4138ec197b0028b7a1e98ae9b50c977e6 Gabe Berke-Williams committed Apr 12, 2013
View
@@ -0,0 +1,6 @@
+#!/bin/sh
+set -e
+PATH="/usr/local/bin:$PATH"
+trap "rm -f .git/tags.$$" EXIT
+ctags --tag-relative -Rf.git/tags.$$ --exclude=.git --languages=-javascript,sql
+mv .git/tags.$$ .git/tags
@@ -0,0 +1,2 @@
+#!/bin/sh
+.git/hooks/ctags >/dev/null 2>&1 &
@@ -0,0 +1,2 @@
+#!/bin/sh
+.git/hooks/ctags >/dev/null 2>&1 &
@@ -0,0 +1,2 @@
+#!/bin/sh
+.git/hooks/ctags >/dev/null 2>&1 &
@@ -0,0 +1,4 @@
+#!/bin/sh
+case "$1" in
+ rebase) exec .git/hooks/post-merge ;;
+esac
View
@@ -106,3 +106,5 @@
enabled = 1
[credential]
helper = osxkeychain
+[init]
+ templatedir = ~/.git_template

0 comments on commit ed96f5c

Please sign in to comment.