[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: WARNING: Git merges are tricky. Rebasing is better?
From: |
Maxim Cournoyer |
Subject: |
Re: WARNING: Git merges are tricky. Rebasing is better? |
Date: |
Wed, 02 Feb 2022 09:19:44 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) |
Hello Kyle and Leo,
Kyle Meyer <kyle@kyleam.com> writes:
> Leo Famulari writes:
>
>> On Mon, Jan 17, 2022 at 05:26:08PM -0500, Kyle Meyer wrote:
>>> Fwiw I don't think Git automatically resolved that conflict:
>>>
>>> $ git checkout 276f40fdc349d2ad62582b23ea55e061b689cfc0^
>>> $ git merge 276f40fdc349d2ad62582b23ea55e061b689cfc0^2
>> [...]
>>> ++<<<<<<< HEAD
>>> + "0r7m34xzz3shdfxf2abxb069izak3yv3ijlg29qy4pfmyawkilfs"))
>>> + (patches
>>> + (search-patches
>>> "epiphany-update-libportal-usage.patch"))))
>>> ++||||||| d91de53caa
>>> ++
>>> "0r7m34xzz3shdfxf2abxb069izak3yv3ijlg29qy4pfmyawkilfs"))))
>>> ++
>>> ++=======
>>> +
>>> "0k7b22zq3z1kllzqxgwsvwb1lp0j6rjb3k1hvhna3i573wc4mpji"))))
>>> +
>>> ++>>>>>>> 276f40fdc349d2ad62582b23ea55e061b689cfc0^2
>>
>> So, you think it was a mistake made when resolving conflicts by hand? I
>> can certainly understand that.
>
> Yes.
>
>> Either way, it's bad that the Git history doesn't show these types of
>> changes.
>
> Right, inspecting merge results can be confusing. By default that
> change is pruned from diffs as "uninteresting" because the merge result
> matched the content in one of the parents (discussed in the "COMBINED
> DIFF FORMAT" section of git-diff's manpage and the --diff-merges
> description of git-show's manpage).
>
> $ git show 276f40fd | grep 0r7m34xzz
> $ git show --diff-merges=combined 276f40fd | grep 0r7m34xzz
> + "0r7m34xzz3shdfxf2abxb069izak3yv3ijlg29qy4pfmyawkilfs"))
Thanks for this interesting discussion, and apologies for mis-resolving
the conflict :-)
Maxim
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: WARNING: Git merges are tricky. Rebasing is better?,
Maxim Cournoyer <=