Created
July 10, 2013 02:16
-
-
Save willkg/5962949 to your computer and use it in GitHub Desktop.
commit-msg hook for translating all commit messages into Pirate using dennis.
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
#!/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