News for hackers. Stuff that matters.
Re:Write good git commit messages by jonahx on Wednesday December 12, 2018 @09:52AM (#18664358)
Because they are logically grouped and that grouping is often more important than the commits themselves -- together, they accomplish a higher-level goal.

You want both that goal and the individual tasks which achieved it to be visible.

Re:Write good git commit messages by adtac on Wednesday December 12, 2018 @09:56AM (#18664400)
That information can and should be a part of the commit body. An extra commit just for that information is, in my opinion, a hack and a workaround.

I guess we have fundamental differences on how a tree should be structured. It's more of a DAG in your case, but I prefer to keep a tree a tree.

Re:Write good git commit messages by jonahx on Wednesday December 12, 2018 @11:27AM (#18665214)
Not sure I follow your argument. How would you put information about the semantic meaning of a series of commits into "the commit body"?

The only point I'm making essentially is that "the commit" is too granular to capture all the information you need about your work and its history. You need some kind of grouping mechanism as well. It doesn't have to be merge commits, necessarily. But as I understood it, your original argument was that "there is no need for anything higher level than a commit." But there clearly is imo.

Re:Write good git commit messages by Thiez on Wednesday December 12, 2018 @01:51PM (#18666611)
If you tag HEAD after each merged PR you can still see which commits belong together, they'll be between two tags.
Re:Write good git commit messages by jonahx on Wednesday December 12, 2018 @02:36PM (#18667022)
Yeah, when I said:

> It doesn't have to be merge commits, necessarily.

I was thinking of a tagging strategy.