News for hackers. Stuff that matters.
Re:How to Write a Git Commit Message by dougdonohoe on Sunday September 13, 2015 @07:10PM (#10213093)
In the past few teams I've led, the requirement was to include a JIRA ticket number in the commit message. With tools like Fisheye, you can click from the commit message to the JIRA and get much more context about the particulars of the commit. It worked exceedingly well. The point is that there is only so much context you can put into a commit message. Sometimes the context lives outside the system and good tools support like Atlassian's suite makes life easier.
Re:How to Write a Git Commit Message by nirvdrum on Sunday September 13, 2015 @07:25PM (#10213111)
A lot of people do something similar on GitHub. If you're going to do this, please include the issue subject in the commit message somewhere. "Fixes #135" is absolutely meaningless outside the context of whatever tool. And it absolutely falls apart if the project lives long enough to change issue trackers.
Re:How to Write a Git Commit Message by fenomas on Sunday September 13, 2015 @11:25PM (#10213536)
Much agreed. "Fixes #123" makes sense for pull request messages, but the commit messages should be verbose!
Re:How to Write a Git Commit Message by ekimekim on Sunday September 13, 2015 @11:51PM (#10213572)
I was in a team where the tooling required a JIRA ticket reference in the commit message. Of course, the JIRA project didn't have an actual ticket for the majority of minor changes and fixes (and for that matter, adding one for every single commit in a 20-commit topic branch was tedious). Eventually the entire team was just adding "ticket 1" by default to every message.

You can't solve a people problem with tooling. It can help, but ultimately if it's a pain point people will simply bypass it.

Re:How to Write a Git Commit Message by donatj on Sunday September 13, 2015 @07:17PM (#10213102)
I've seen this practice very often lead to less atomic commits, what are your thoughts?