whenever i write "in git, a merge commit has 2 parents", I always get "well, actually..." replies saying that a merge commit can have more than 2 parents.

but have you ever done a merge with more than 2 parents? why? (I haven't!)

Follow

@b0rk

I am doing such merges constantly :)

I have a checkout of nixpkgs, and sometimes have a few unrelated PRs open. I want my system to use a version of nixpkgs that includes all my changes. Thus, I have a script that finds all the branches with my PRs and makes a merge of upstream/master with all of them.

I never push that merge commit anywhere and never commit anything on top of it; it's just there so that I can point my nixos flake at a version of nixpkgs.

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.