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
#!/usr/bin/env ruby | |
# | |
# Git commit-msg hook. Prepend branch name to commit tasks. | |
# If your branch name is in the numeric form "12345", also prepend "(Task 123)" to commit messages, | |
# unless #notask is included in the message (#notask will be stripped). | |
# | |
# Based on git://gist.github.com/750755.git | |
# | |
# Place code into .git/hooks/prepare-commit-msg and give it executable permissions | |
# cd .git/hooks |