Skip to content

Instantly share code, notes, and snippets.

@aedoran
Created March 29, 2013 04:03
Show Gist options
  • Save aedoran/5268688 to your computer and use it in GitHub Desktop.
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
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