git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [GIT PULL] GPIO bulk changes for kernel v4.6

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 18, 2016, 16:37 UTC
Message-ID
<xmqqr3f7rbck.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<CA+55aFwbRVG-5AW+NnMOFZ_hU5i+i7f3FxgEt9Qm7B6pEd7x0g@mail.gmail.com>
Linus Torvalds <torvalds@linux-foundation.org> writes:
Show 5 quoted lines
> It's literally just the fact that "git merge" does it with no extra
> flags or checks. I'd like people to have to be aware of what they are
> doing when they merge two different projects, not do it by mistake.
>
> So making it conditional on a flag like "--no-common-root" is what I'd look for.

I think I said essentially the same thing in a separate message; I am not sure "--no-common-root" is a good name, but I think it is better to be more explicit than tying this to a strategy.

> I don't think the original "resolve" did it, for example. You can't do
> a three-way merge without a base.
Yes, and that continues to this day:
        # Give up if we are given two or more remotes -- not handling octopus.
        case "$remotes" in
        ?*' '?*)
                exit 2 ;;
        esac
        # Give up if this is a baseless merge.
        if test '' = "$bases"
        then
                exit 2
        fi

This is a tangent but I wonder if we should say why we refuse to the standard error before calling these two "exit"s.

Previous: Linus TorvaldsNext: Linus Torvalds
Message 5 of 7 in “Re: [GIT PULL] GPIO bulk changes for kernel v4.6”
  1. Linus TorvaldsMar 18, 2016
  2. Johannes SchindelinMar 18, 2016
  3. Junio C HamanoMar 18, 2016
  4. Linus TorvaldsMar 18, 2016
  5. Junio C HamanoMar 18, 2016
  6. Linus TorvaldsMar 18, 2016
  7. Junio C HamanoMar 18, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.