News for hackers. Stuff that matters.
Re:Writing good commit messages by andreasklinger on Friday July 20, 2012 @11:21AM (#4271163)
Naive question: The present tense/imperative form is a standard i kind-of adopted without ever questioning.

Why is better to write in that form?

Re:Writing good commit messages by cgdangelo on Friday July 20, 2012 @11:27AM (#4271186)
Just a guess, but I think it's because the message should indicate what the commit itself does, not what _you_ did to write it. For example, by merging this commit, the result is that I "Add X widget" to my code.
Re:Writing good commit messages by themckman on Friday July 20, 2012 @12:35PM (#4271575)
This is exactly how I describe this idea to people. I tell them to complete the following sentence. "Applying this change set will...". I've recently become less averse to verbs like fixes, updates adds, etc as I feel the sentence "The change set..." is still pretty good. The key, obviously, being you're describing the change set, not your actions.
Re:Writing good commit messages by brittohalloran on Friday July 20, 2012 @11:28AM (#4271189)
I think of cherry picking commits as a good scenario where this wording makes sense: "I want to... fix A, then add feature B, then change x"
Re:Writing good commit messages by ninetax on Friday July 20, 2012 @12:36PM (#4271581)
It's to keep in form with some automatic git messages (like merge) that output in that tense. Also that is the tense the Git project committers use themselves.

See: http://stackoverflow.com/questions/3580013/should-i-use-past...

Also the past repeats: http://news.ycombinator.com/item?id=2079612

For a good laugh: http://whatthecommit.com/

Re:Writing good commit messages by calinet6 on Friday July 20, 2012 @11:27AM (#4271188)
Well, for one, 2-3 characters shorter ('fix' vs 'fixes', 'fixed', or 'fixing')
Re:Writing good commit messages by nsxwolf on Friday July 20, 2012 @01:56PM (#4272023)
So far these responses don't convince me there is any advantage.

It makes more sense to me that the trouble ticket ticket should be written in the imperative and the commit message should be past tense.

Re:Writing good commit messages by highwind on Friday July 20, 2012 @11:31AM (#4271213)
If you are going back in time in your commits and let's say you want to go forward. It just flows better to see it as a command when going in to the future.