News for hackers. Stuff that matters.
Re:Things I wish everyone knew about Git (Part I) by lisper on Wednesday June 29, 2022 @03:05PM (#31924387)
> each commit points to their parent

Potentially more than one.

Re:Things I wish everyone knew about Git (Part I) by tomjakubowski on Wednesday June 29, 2022 @03:07PM (#31924415)
just to spell it out fully for dear reader: that's how merge commits work.
Re:Things I wish everyone knew about Git (Part I) by Anunayj on Wednesday June 29, 2022 @03:48PM (#31924889)
and Just for fun, sometimes it can be as big as 66, meet Cthulhu merge [1]

1. https://lkml.org/lkml/2014/1/21/361

Re:Things I wish everyone knew about Git (Part I) by chrismorgan on Thursday June 30, 2022 @12:50AM (#31928798)
There are realistic uses for more even than that. I’ve worked with a system of pre-production deploying where you labelled your PR/MR/whatever-you-call-it “include-in-beta” or whatever, and the beta branch would be reconstructed to be an octopus merge of the production branch and all include-in-beta heads. (When I came to the process, it was doing sequential merges, which got very slow when you had a whole bunch of work backing up that you couldn’t deploy to production just yet, so I turned it into a single octopus merge which was much, much faster, only falling back to sequential merges if the octopus merge failed, so that it could point out which MR conflicted. I don’t remember how high the numbers ever got, but I think it went beyond 66 at times, even with only a couple of dozen developers.)

Graph log visualisation was certainly fairly difficult to make much of, but it wasn’t generally intended to be made much of, since it was basically a deployment implementation detail.

Re:Things I wish everyone knew about Git (Part I) by wdfx on Wednesday June 29, 2022 @06:29PM (#31926475)
And when you are playing around with git to try this strategy and it's not allowed you get the wonderful error message "should not be doing an octopus".

(IIRC, from some version of git from about 6 years ago)

Re:Things I wish everyone knew about Git (Part I) by hinkley on Wednesday June 29, 2022 @04:26PM (#31925314)
Linus doesn't appear to be particularly enthusiastic about this strategy.

Humans really do handle treating changes as a sequence. I wonder if this was really necessary or could have been serialized.

Re:Things I wish everyone knew about Git (Part I) by HWR_14 on Wednesday June 29, 2022 @05:15PM (#31925817)
Mercurial, by the spec, only allows two parents to force merges like that into a sequence.