git: Prepend Ticket Information
To eliminate the need to constantly type out the ticket information at the beginning of a commit message, this script uses the built in git hook system to prepend commits with the ticket information from the branch name. For example, if your branch is named:
the hook will grab the ticket information at the beginning of the branch name and prepend it to your comments:
$ git commit -m "Test commit message" [b-51392/fixed-minor-visual-bug 74cfe0e] B-51392: Test commit message.