mirror of https://github.com/bjeanes/dotfiles.git
Add git_template directory with ctags hooks
parent
6c55caafc3
commit
777889a521
|
@ -6,7 +6,6 @@
|
|||
* Remove 'export' from variables that don't need them
|
||||
* Make current directory red in prompt if non-writeable (ala fish)
|
||||
* Fix shell $PATH. Intelligently build up from only existent directories and ensure no-duplicates
|
||||
* Git template with ctag/other hooks (http://tbaggery.com/2011/08/08/effortless-ctags-with-git.html)
|
||||
|
||||
Copyright (c) 2008-2011 Bodaniel Jeanes
|
||||
|
||||
|
|
1
Rakefile
1
Rakefile
|
@ -25,6 +25,7 @@ task :install do
|
|||
vcs/git/gitconfig
|
||||
vcs/git/gitignore
|
||||
vcs/git/gitk
|
||||
vcs/git/git_template
|
||||
vcs/hg/hgrc
|
||||
)
|
||||
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
# See http://tbaggery.com/2011/08/08/effortless-ctags-with-git.html
|
||||
|
||||
new_tags_file="`mktemp -t ctags`"
|
||||
ctags --tag-relative -Rf "${new_tags_file}" --exclude=.git --languages=-javascript,sql
|
||||
mv "$new_tags_file" ".git/tags"
|
||||
|
|
@ -0,0 +1 @@
|
|||
post-commit
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
.git/hooks/ctags >/dev/null 2>&1 &
|
||||
|
|
@ -0,0 +1 @@
|
|||
post-commit
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
case "$1" in
|
||||
rebase) exec .git/hooks/post-merge ;;
|
||||
esac
|
||||
|
|
@ -9,6 +9,7 @@
|
|||
put = push origin HEAD
|
||||
push-all = "!for i in $(git config --list | grep -E ^remote\\..+\\.url | sed -E 's/^remote\\.(.*)\\.url=.*/\\1/'); do git push $i master; done"
|
||||
unadd = reset HEAD
|
||||
ctags = !.git/hooks/ctags
|
||||
[apply]
|
||||
whitespace = nowarn
|
||||
[color]
|
||||
|
@ -63,3 +64,5 @@
|
|||
|
||||
[github]
|
||||
user = bjeanes
|
||||
[init]
|
||||
templatedir = ~/.git_template
|
||||
|
|
Loading…
Reference in New Issue