So my branch is named after bugtracker ticket number, something like \"issue-1234\", and we have a convention to always write down ticket number in commit message. I\'m wond
Another option would be to use git notes to add the ticket number information to the commit, using one of the hooks you mention.
(See "Notes to self" blog post entry for more on the notes mechanism)