-
-
Notifications
You must be signed in to change notification settings - Fork 903
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update 03-changes.md #78
Conversation
On Fri, Mar 20, 2015 at 09:27:32AM -0700, janepipistrelle wrote:
Looks pretty good to me. To emphasize the choice for more detail, may Good commit messages start with a brief (<50 characters) summary of
I'd still link from here with “Good commit messages” as the anchor If you do end up adding a link, I'd recommend reference-style links Good commit messages start… and then at the end of the file: |
Thanks for the comments @wking I think those are really nice touches and I'll add them. |
This is short and sweet; I like it! Merge? |
On Sat, Mar 21, 2015 at 09:29:58PM -0700, Daisie Huang wrote:
It looks good to me. |
Thanks, @janepipistrelle! Maybe it sounds a little better to me "short, descriptive message" instead of your "short, unique message", but I'm happy with the current version too. |
On Sun, Mar 22, 2015 at 07:16:49AM -0700, Ivan Gonzalez wrote:
Hmm, “unique” is probably too strong, but I think it's good for folks I'd have gone with summaries like:
“descriptive” is good, but I'd like a word that also implies that |
Yep, any of those "descriptive, distinctive, specific" is a little bit better than unique. @janepipistrelle, your pick: I'll merge any of these or something else you come up with. |
any of those are fine with me. I picked unique to emphasise not writing the same thing for each commit message (ie "fixed bug"). |
I prefer "descriptive," if possible: uniqueness and specificity are nice-to-have features of a good commit message, but really, the only necessary criterion is "descriptive." @janepipistrelle, if you could push that change up to your branch, I'll gladly merge the PR. |
On Mon, Mar 23, 2015 at 03:22:07PM -0700, Daisie Huang wrote:
I wanted a word that implied “descriptive in the context of all the And I think the whole point of this is to describe the nice-to-have All of that said, You and Ivan are the maintainers, so it's your call. |
Commit messages are so short that, IMO, it's nearly impossible to really contextually describe a change, so it's more of a goal to strive for than an actual goal. In practice, probably 80% of commit messages are things like "typo fix" or, for me, "test." I'd rather people commit things frequently with bad messages than put off committing things because writing a good message was hard. Personally, I'd prefer to have the change be really small and obvious in the diff directly, with a short commit message that provides a hint, than have a really good commit message that actually obscures a whole bunch of stuff in the diff. |
On Mon, Mar 23, 2015 at 04:27:18PM -0700, Daisie Huang wrote:
I don't buy it ;). Or at least, I see no reason to give up before
For typos, I usually use: {path-to-tweaked-file}: Fix '{old}' -> '{new}' typo For example, in a work repository, I have 1.
Absolutely. But I don't think using “specific” here will scare them
I agree. But I really prefer small, obvious changes with really good |
Yes, I've trying to do that after realizing that 80% of my commits messages say "minor fix", "fix typo"... I agree with @wking that good messages are really important, even if it takes a lot of discipline. But one thing, we don't have to use only two words only :-) We can say "short, descriptive, and specific" and cover both views. |
On Mon, Mar 23, 2015 at 06:17:04PM -0700, Ivan Gonzalez wrote:
You rebel ;). I feel silly, and the three-word approach sounds good |
in sentence describing good commit messages
Great! I'm merging this. Thanks @janepipistrelle for the PR and everyone for a great discussion. |
Add a brief explanation of how write good commit messages in 03-changes.md.
Add a brief explanation of how write good commit messages in 03-changes.md.
Here's my stab at adding a sentence on composing commit messages as per issue #71. I haven't included the Tim Pope link (http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html) here as I thought it would be better to put that in a glossary and link to it, given that the lesson time is stated at 20 minutes, but I have tried to summarise his key points.