At my current gig we use a set of git hooks, and the pre-commit hook enforces the git comment style, which performs integration with bugtracking/timetracking. We wrote our own and it's just a couple of regexes tied to a couple of warnings.
Look in any git project's .git/hooks/ directory for some sample scripts.
Look in any git project's .git/hooks/ directory for some sample scripts.