scatterd-dotfiles/git_template/hooks/post-merge
Sean Doyle cbdcbce01d Introduces git_template for init templating
Inspired by http://tbaggery.com/2011/08/08/effortless-ctags-with-git.html

* Make `ctags` executable configurable
* Adds `git ctags`
* Runs `ctag` on `commit` / `branch` / `checkout`
* Extensible via `~/.git_template.local/hooks/{pre,post}-*`
* explain `git_template` under `git` section
2014-08-27 16:43:38 -04:00

6 lines
144 B
Bash
Executable file

#!/bin/sh
LOCAL_HOOK=$HOME/.git_template.local/hooks/post-merge
[[ -f $LOCAL_HOOK ]] && source $LOCAL_HOOK
.git/hooks/ctags >/dev/null 2>&1 &