News for hackers. Stuff that matters.
Re:Git-absorb: Git commit –fixup, but automatic by Terr_ on Thursday September 26, 2024 @02:39PM (#41661684)
To clarify, I meant a scenario where that very simplest version is already upstream, and your feature-branch contains 5-6 commits which are all different refactoring-steps or making the string literals override-able or abstracted away.

When you need to rebase that onto main/master, there would be 5-6 stops to fix conflicts in a 3-way diff, and I don't think the kind of work in that example is compelling enough to justify that as opposed to having one (squashed) commit that simply states that you improved the method in several ways.

P.S.: Sometimes more commits can make refactoring easier instead, often when it comes to splitting file rename/move operations from changing their content.

Re:Git-absorb: Git commit –fixup, but automatic by brigandish on Thursday September 26, 2024 @08:35PM (#41665095)
I'm not against squashing, especially for merging into master (although, again, that should also constitute a logical whole), but doesn't rebasing a feature branch onto master first take care of this?