Created
April 16, 2012 19:29
-
-
Save mannih/2400939 to your computer and use it in GitHub Desktop.
bash function to disable git ci -am ...
This file contains 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
git () { | |
if [ "$1" = "ci" -a "$2" = "-am" ]; then | |
curl --silent http://www.trout.me.uk/cgi-bin/mstomatic.cgi | grep h1 | cut -d '>' -f 3 | cut -d '<' -f 1 | |
return 1; | |
fi | |
command git $@ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment