scatterd-dotfiles/git_template/hooks/post-rewrite
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

4 lines
68 B
Bash
Executable file

#!/bin/sh
case "$1" in
rebase) exec .git/hooks/post-merge ;;
esac