News for hackers. Stuff that matters.
Re:Squash your commits by kylnew on Friday April 01, 2016 @03:50PM (#11407980)
Have you ever tried following a change in a repo that came from an unsquashed PR? It's hell.

What's truly meaningful IMO is a git log that reads like a product change log

Re:Squash your commits by WorldMaker on Friday April 01, 2016 @04:01PM (#11408066)
«Have you ever tried following a change in a repo that came from an unsquashed PR?»

I have a self-congratulating black belt in source code archeology. With the right tools, most of which are on GitHub, even, such as good commit range diffing, smart uses of tags and branches, and knowing how to navigate the DAG from merge commits (more reason to -no-ff) you have a lot of power in your hands.

«What's truly meaningful IMO is a git log that reads like a product change log»

I appreciate that point of view, but I don't share it. A product change log, I feel, is a bit of marketing/PR that needs some time, love, and editing; I find a git log is for catching snapshots of raw progress and more often useful in seeing what your co-developers are up to, as they are working.

Re:Squash your commits by kylnew on Friday April 01, 2016 @04:20PM (#11408240)
I think this really comes down to team. It's kind of an all-in or nothing thing and if you go against the grain everyone will just end up angry
Re:Squash your commits by WorldMaker on Friday April 01, 2016 @04:56PM (#11408545)
Absolutely, not every team follows the same preferences, so with any style/aesthetic choices, be sure to know what the team zeitgeist is. (I'm not a monster, I play well on teams, I promise.)
Re:Squash your commits by natrius on Friday April 01, 2016 @04:22PM (#11408253)
Try it both ways. I used to agree with you until I tried squashing after code review.
Re:Squash your commits by teacup50 on Friday April 01, 2016 @07:21PM (#11409276)
As someone who has spent a lot of time tracking down the origin of source code changes -- and the reasons for them, and the implications of the change -- by reviewing commit logs, I can think of little worse, short of no commit history at all, than trying to derive anything remotely useful from a commit history that has been condensed down to a product change log.

Even commits that lack good commit messages provide valuable information in the form of insight into the author's cumulative thinking/process.

Re:Squash your commits by kylnew on Tuesday April 05, 2016 @06:07PM (#11434941)
Ugh, the thought of scouring through commits with messages like "fixed", "oops", "done" is like fingernails on a chalkboard to me. What I read is a LACK of thought process, when you can't squash and justify your changes susinctly