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

Re: [PATCH] t5516: fix mismerge in 'next'

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 22, 2019, 06:25 UTC
Message-ID
<xmqq4l6q8skd.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<20190422044812.GA28493@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
> The merge of jk/fetch-reachability-error-fix conflicts with
> jt/test-protocol-version, but the conflict resolution done by
> b4ce8375c018 has a typo (looks like an editor mistake):
> ...
Indeed it was.  Thanks for spotting.
> The same problem is present in the merges to pu, which is not surprising
> since the 'next' merge was probably just resolved by rerere.
Yup, here is what I did:
    $ git checkout b4ce8375c018
    $ git am jk-t5516-fix.patch
    $ CG=$(git describe)
    $ git reset --hard b4ce8375c018^
    $ git merge jk/fetch-reachability-error-fix
    $ git rerere forget t/t5516-fetch-push.sh
    $ git diff $CG ;# shows the typo
    $ git checkout $CG t/t5516-fetch-push.sh
    # I should learn to use 'git restore' one of these days.
    $ git diff ;# shows --cc
    $ git rerere
    $ git reset --hard
    $ git merge jk/fetch-reachability-error-fix
    $ git diff $CG ;# shows no difference

That should teach rerere about the right resolution. And to carry the fix in 'next':

    $ git checkout next
    $ git am -s3 jk-t5516-fix.patch
Thanks.
Previous: Jeff King
Message 2 of 2 in “t5516: fix mismerge in 'next'”
  1. t5516: fix mismerge in 'next'Jeff King, Apr 22, 2019
  2. Junio C HamanoApr 22, 2019

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.