There is a really nice feature of the Jira / Git integration where if you give a Git branch the same name as a Jira ticket label (e.g. SP-678), then the commit history of that branch is automatically reported in the Jira ticket. Well, it seems that the linking is automatic, but the commit reporting only works if you also remember to prefix your commit message with the branch name. This seems like repetition to me and I invariably forget.
So my question is How can I automatically add the branch name prefix to my commit messages?
Alternatively, is there another way?