These are just guidelines, but we need something on the web so we can point people when they deviate too much from our expected behaviour.
These seem to be the most generic guidelines I could find from all comments on all threads.
Differential D8197
Add commit message guidelines to developer policy rengolin on Mar 10 2015, 4:36 AM. Authored by
Details
Diff Detail Event Timeline
Comment Actions I don't think there's consensus about any of this. In particular, it seems like Chandler's feedback in the thread was completely ignored (or not seen). I tend to agree with his points too.
Comment Actions I tend to add a prefix like [IRCE] or [SCEV] to the subject of my commit messages to quickly establish context. I've seen others do it too. Does it make sense to codify that practice as a suggestion in this document? Comment Actions Changing in response to comments.
Comment Actions The attribution requirement, complete with exclamation mark, is already our policy: http://llvm.org/docs/DeveloperPolicy.html#attribution-of-changes I've heard of people grepping through commit logs looking for such commits based on this, so there are non-obvious costs to changing it. Comment Actions There's room for bikeshedding of the title tag: I personally prefer "Foobar:" instead of [Foobar] as it has less distracting special chars. Both styles are used often currently. Comment Actions Changing the attribution section to not duplicate information. Following last round of consensus on the mailing list. Comment Actions Is it worth adding a mention of "Differential Revision: <URL>" as per http://llvm.org/docs/Phabricator.html#committing-a-change Comment Actions There seem to be two important issues that have come up repeatedly that are likely worth mentioning:
Comment Actions Enough has been discussed and the patch has landed already. I'll abandon this review in order to get work done. |
Good commit messages help in reconstructing the rationale for the state of the code, that's their most important purpose.
Saying 'git repositories' is a bit confusing, since we still primarily use svn. Maybe say 'giv/svn'?