Skip to content

Instantly share code, notes, and snippets.

@willkg
Created July 10, 2013 02:16
Show Gist options
  • Save willkg/5962949 to your computer and use it in GitHub Desktop.
Save willkg/5962949 to your computer and use it in GitHub Desktop.
commit-msg hook for translating all commit messages into Pirate using dennis.
#!/bin/bash
(cat < $1 | dennis-cmd translate - | tail -n "+2" > $1.tmp) && mv $1.tmp $1
# We always exit 0 in case dennis-cmd fails. Then you get your
# original commit message. No one likes it when goofy shenanigans
# break your stuff.
exit 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment