Skip to content

Instantly share code, notes, and snippets.

@DXist
Created July 15, 2013 18:38
Show Gist options
  • Save DXist/6002285 to your computer and use it in GitHub Desktop.
Save DXist/6002285 to your computer and use it in GitHub Desktop.
Git wrapper updating ctags
function git() {
GIT_CMD=`which git`
$GIT_CMD "$@"
status="$?"
[[ $status = 0 ]] || return $status
for opt in "$@"; do
case "$opt" in
commit | rebase)
$GIT_CMD ctags
break
;;
esac
done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment