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
6 lines
144 B
Bash
Executable file
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 &
|