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

Re: Choosing a mergetool according to file type

From
Matthieu Moy <matthieu.moy@imag.fr>
Date
Jun 26, 2009, 12:04 UTC
Message-ID
<vpqd48rw68k.fsf@bauges.imag.fr>
In-Reply-To
<C66A69E6.205F2%jefferis@gmail.com>
Gregory Jefferis <jefferis@gmail.com> writes:
Show 7 quoted lines
> Hi Johannes,
>
> On 2009-06-26 11:43, "Johannes Sixt" <j.sixt@viscovery.net> wrote:
>
>> I don't think that you can choose the merge tool by setting attributes.
>
> OK, that was my impression, but I wanted to check.
Never used it, but man gitattributes says
   Performing a three-way merge
       merge
[...]
              String
                 3-way merge is performed using the specified custom merge driver. The built-in 3-way merge driver can be explicitly specified by asking
                 for "text" driver; the built-in "take the current branch" driver can be requested with "binary".
[...]
       Defining a custom merge driver
Is it not what you're looking for?
-- 
Matthieu
Previous: Johannes SixtNext: Gregory Jefferis
Message 3 of 8 in “Re: Choosing a mergetool according to file type”
  1. Gregory JefferisJun 26, 2009
  2. Johannes SixtJun 26, 2009
  3. Matthieu MoyJun 26, 2009
  4. Gregory JefferisJun 26, 2009
  5. Matthieu MoyJun 26, 2009
  6. Junio C HamanoJun 26, 2009
  7. Gregory JefferisJun 26, 2009
  8. Gregory JefferisJun 26, 2009

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.