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

Re: git-mergetool: wrap tools with 3 files only to use the BASE file instead of MERGED

From
Sebastian Schuberth <sschuberth@gmail.com>
Date
Aug 10, 2011, 19:23 UTC
Message-ID
<CAHGBnuP5hZ_GJ-ZCwDUVttXvZqsrTh7yXjJCZUoMgVEwVrYjjw@mail.gmail.com>
In-Reply-To
<20110810161211.GC4076@elie.gateway.2wire.net>
On Wed, Aug 10, 2011 at 18:12, Jonathan Nieder <jrnieder@gmail.com> wrote:
Show 14 quoted lines
>> I think it would be better to wrap such merge tools by:
>> 1. passing them BASE LOCAL REMOTE;
>> 2. checking whether or not BASE hase been modified:
>>    * if it has, then copying it to MERGED,
>>    * if it has not, exiting with return code 1 (merge failed).
>> This check can be by either saving and comparing the mdate, or perhaps
>> the SHA-1 hash of the BASE file.
>>
>> If this sounds good enough, I can dive into git-mergetoo--lib and
>> implement it. In the meantime, here is an example of a custom merge tool
>> that wraps meld for that purpose.
>
> I think you forgot to include the example.  Anyway, at first glance it
> sounds like a sensible idea.  David et al: thoughts?

Sounds sensible to me, too. (Although I'm not affected, as fortunately the GUI merge tools I've been using so far, namely ECMerge and Beyond Compare 3, both allow to specify a separate merge output.)

-- 
Sebastian Schuberth
Previous: Tanguy OrtoloNext: David Aguilar
Message 3 of 7 in “Re: git-mergetool: wrap tools with 3 files only to use the BASE file instead of MERGED”
  1. Jonathan NiederAug 10, 2011
  2. Tanguy OrtoloAug 10, 2011
  3. Sebastian SchuberthAug 10, 2011
  4. David AguilarAug 11, 2011
  5. Jonathan NiederAug 11, 2011
  6. David AguilarAug 11, 2011
  7. Sebastian SchuberthAug 11, 2011

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.