Mercurial > dotfiles.old
changeset 2:a8279f1d5b39
Add template hooks
author | zegervdv <zegervdv@me.com> |
---|---|
date | Sun, 23 Feb 2014 17:38:49 +0100 |
parents | 4687ecd3ea52 |
children | 44d3af8838f8 |
files | gitconfig templates/git/hooks/ctags templates/git/hooks/post-checkout templates/git/hooks/post-commit templates/git/hooks/post-merge templates/git/hooks/post-rewrite |
diffstat | 6 files changed, 18 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/gitconfig Sun Feb 23 17:38:34 2014 +0100 +++ b/gitconfig Sun Feb 23 17:38:49 2014 +0100 @@ -31,3 +31,5 @@ # # Setting to git 2.0 default to surpress warning message default = simple +[init] + templatedir = ~/.templates/git
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templates/git/hooks/ctags Sun Feb 23 17:38:49 2014 +0100 @@ -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
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templates/git/hooks/post-checkout Sun Feb 23 17:38:49 2014 +0100 @@ -0,0 +1,2 @@ +#!/bin/sh +.git/hooks/ctags >/dev/null 2>&1 &
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templates/git/hooks/post-commit Sun Feb 23 17:38:49 2014 +0100 @@ -0,0 +1,2 @@ +#!/bin/sh +.git/hooks/ctags >/dev/null 2>&1 &