Re:Fortunately, I don't squash my commits
by saagarjha on Monday October 05, 2020 @11:47AM
(#24688792)
That just sounds like a bad squash.
Re:Fortunately, I don't squash my commits
by maccard on Monday October 05, 2020 @01:29PM
(#24689884)
If the original commits are:
- Change X to 10 by Foo
- Change X to 100 by Bar
- Change X to 50 by Baz
And that gets squashed into `Change X to 50 by Baz`, you lose the context as to why Foo and Bar changed it, and the values. If I need to go investigate an issue with X, I'd rather thave the history of all the changes.
I don't often (ever?) browse the history, but I _do_ regularly search the history using tooling, (git log | grep <something>), and more is more in that case, even if the history isn't perfect.