Re:Git is my buddy: Effective Git as a solo developer
by fiddlerwoaroof on Tuesday February 23, 2021 @01:23PM
(#26240735)
Squashing makes tools like git blame or emacs’s vc-annotate a lot less useful: with small commits, I can reconstruct the code as it was when a particular line changed; with a squash, the coordinated changes are a lot less useful.
[ Parent
| on HN ]
Re:Git is my buddy: Effective Git as a solo developer
by jeremyjh on Tuesday February 23, 2021 @03:22PM
(#26242402)
Without squashing git blame has too much noise in it for my taste. I don't want to see 90 different commits in a single file's blame, when they were actually related to 9 different features. If each topic branch has a reasonable scope then the squashed changes I think are more useful than each little tweak or fixup.
Re:Git is my buddy: Effective Git as a solo developer
by SilverRed on Tuesday February 23, 2021 @05:11PM
(#26243601)
If you really want to do it nice, you get to the end and then move all of the commited changes in to the uncommited state and then recommit them in to logical steps and commit them piece by piece with well written messages.
But at some point you are spending more time bookkeeping than the actual value you will get from it. If its a personal repo, don't bother. If you are sending a patch to Linus, tidy your commit messages.