Skip to content

Instantly share code, notes, and snippets.

@sriedel
Created November 5, 2012 08:32
Show Gist options
  • Save sriedel/4016036 to your computer and use it in GitHub Desktop.
Save sriedel/4016036 to your computer and use it in GitHub Desktop.
ctags update scripts for git hooks
tmp
log
doc
coverage
app/assets/javascripts/*min.js
#!/bin/bash
CTAGS=/usr/bin/ctags
scriptpath=$(dirname $0)
$CTAGS --recurse --exclude=@${scriptpath}/ctags.excludes
@sriedel
Copy link
Author

sriedel commented Nov 5, 2012

Add to
.git/hooks/post-commit
.git/hooks/post-receive
.git/hooks/post-update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment