News for hackers. Stuff that matters.
Re:Extremely Linear Git History by pnt12 on Tuesday November 22, 2022 @03:38PM (#33711149)
I wholeheartedly agree!

With this, you can also push people towards smaller PRs which are easier to review and integrate.

The downside is that if you és o work on feature 2 based on feature 1,either you wait for the PR to be merged in main (easiest approach) or you fork from your feature branch directly and will need to rebase later (this can get messier, especially if you need to fix errors in feature 1).

Re:Extremely Linear Git History by alvarlagerlof on Tuesday November 22, 2022 @07:22PM (#33713441)
Second part explains exactly what I'm juggling with right now.
Re:Extremely Linear Git History by bpugh on Wednesday November 23, 2022 @12:02AM (#33715430)
Git recently added a --update-refs option to rebase that makes dealing with this scenario a lot easier. This post does a good job explaining how to use it: https://andrewlock.net/working-with-stacked-branches-in-git-...
Re:Extremely Linear Git History by hbogert on Wednesday November 23, 2022 @06:01PM (#33725625)
oh my... I was at the point of making a git plugin to do this. This pretty much was the bane of my existence.

:pray:

Re:Extremely Linear Git History by przemo_li on Friday November 25, 2022 @06:39PM (#33748192)
Git branchless have restack command that restacks whole trees/branches of commits.