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

Re: make test Unexpected passes

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 24, 2016, 19:09 UTC
Message-ID
<xmqqtwiqn7sj.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<loom.20160423T011428-888@post.gmane.org>
Ben Woosley <ben.woosley@gmail.com> writes:
Show 10 quoted lines
> These know breakages:
>
> ok 50 - rebase -m --onto --root
> ok 54 - rebase -m without --onto --root with disjoint history
>
> Have to do with rebasing a root/orphan branch with the -m flag,
> which defaults to -- merge=recursive, which is the case the patch fixed.
>
> Here are the necessary changes:
> ...
Thanks, will squash them in and reword the log message accordingly.
    git-rebase--merge: don't include absent parent as a base
    Absent this fix, attempts to rebase an orphan branch using "rebase -m"
    fails with:
        $ git rebase -m ORPHAN_TARGET_BASE
        First, rewinding head to replay your work on top of it...
        ...
    Note the default rebase behavior does not fail:
        $ git rebase ORPHAN_TARGET_BASE
        First, rewinding head to replay your work on top of it...
        Applying: ORPHAN_ROOT_COMMIT_MSG
        Using index info to reconstruct a base tree...
    A few tests were expecting the old behaviour to forbid rebasing such
    a history with "rebase -m", which now need to expect them to succeed.
    Signed-off-by: Ben Woosley <ben.woosley@gmail.com>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Previous: Ben Woosley
Message 6 of 6 in “make test Unexpected passes”
  1. Ramsay JonesApr 22, 2016
  2. Elijah NewrenApr 22, 2016
  3. Junio C HamanoApr 27, 2016
  4. Elijah NewrenApr 27, 2016
  5. Ben WoosleyApr 22, 2016
  6. Junio C HamanoApr 24, 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.