diff --git a/.git_helpers/ctags b/.git_helpers/ctags new file mode 100755 --- /dev/null +++ b/.git_helpers/ctags @@ -0,0 +1,39 @@ +#!/usr/bin/env ruby + +# Meant for use as a git hook: +# CTAGS_HOOK=1 .git/hooks/ctags &>/dev/null 60 + end + + system( <<-CMD ) or exit $?.exitstatus + git ls-files \ + | #{ctags} --tag-relative -L - -f"#{tmp}" #{opts} \ + && mv #{tmp} #{target} + CMD +end + + +