Created
July 15, 2013 18:38
-
-
Save DXist/6002285 to your computer and use it in GitHub Desktop.
Git wrapper updating ctags
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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