Created
March 29, 2013 04:03
-
-
Save aedoran/5268688 to your computer and use it in GitHub Desktop.
git commit hook for use with idone this this command line client. Just copy this in your .git/hooks/commit-msg. and whenever your commit message has an "IDT" in it, it will send the message to your idonethis account
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
idt=$(grep IDT $1) | |
msg=$(cat $1) | |
if [ -z "$idt" ]; then | |
echo "not for idonethis" | |
else | |
idone "$msg" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment