News for hackers. Stuff that matters.
Re:Fortunately, I don't squash my commits by Mazzen on Monday October 05, 2020 @08:10AM (#24686950)
that's not a valid argument. How do you identify "the lot"?
Re:Fortunately, I don't squash my commits by gmfawcett on Monday October 05, 2020 @08:29AM (#24687094)
There's an obvious upper bound. If you can't identify the last in-prod version that worked, and the first in-prod version that failed, then you have bigger problems than deciding whether to squash your commits.
Re:Fortunately, I don't squash my commits by falcolas on Monday October 05, 2020 @08:41AM (#24687186)

    last_prod_tag < the_lot < current_prod_tag
Re:Fortunately, I don't squash my commits by blandflakes on Monday October 05, 2020 @10:57AM (#24688307)
And if the merge of their commits interleaves with other commits from... teammates?
Re:Fortunately, I don't squash my commits by falcolas on Monday October 05, 2020 @11:45AM (#24688769)
Thanks to the complexity of how components integrate, even seemingly disjointed components, their commits are going to matter when it comes to troubleshooting an issue.

This gets a bit more murkey with mono-repos, but even microservices can combine to create complex production issues.

Re:Fortunately, I don't squash my commits by blandflakes on Monday October 05, 2020 @12:15PM (#24689079)
This sort of sidesteps the issue, IMO, of how hard it is to isolate a problem. Yeah sometimes things collide, but pretty often in my experience there has been one change that needs reverting or patching, not six changes that interleaved. Or rather, interleaving them at best increases the difficulty of the blame game.
Re:Fortunately, I don't squash my commits by twic on Monday October 05, 2020 @08:32AM (#24687113)
By story number, by author, by timestamp, by looking for merge commits, by reading the commit messages - by common sense, basically. If someone has just pushed broken code to master, they usually know exactly what they've just pushed. This doesn't seem like a real problem to me.
Re:Fortunately, I don't squash my commits by magicalhippo on Monday October 05, 2020 @08:15AM (#24686995)
By the ticket/issue number?