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

Re: Git merge using patience diff?

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Apr 26, 2010, 18:59 UTC
Message-ID
<20100426185933.GA11518@progeny.tock>
In-Reply-To
<20100426180923.GC18122@debxo>
Hi,
chombee wrote:
> My version of git is 1.5.*, from before git diff had the --patience
> option. I got git diff to use bzr's implementation of patience diff via
> GIT_EXTERNAL_DIFF. But when merging git still seems to use its normal
> diff. Will I need to write my own merge driver that uses patience diff?

You will need to if you want that functionality. By the way, if you write a clean patch that adds a git-merge-patience program to git.git so one can use ‘git merge -s patience’ out of the box, I imagine you would find some appreciative users.

You could even piggy-back on merge-recursive to do most of the work (and share a main() function and so on), like merge-subtree did: see commit 68faf689 (A new merge strategy 'subtree', 2007-02-15) in git.git.

You might also be interested in the patches at <http://bugs.debian.org/522361>, which add patience diff support to git add --patch and friends (and are sitting in limbo until I find a chance to write some tests for them).

Hope that helps, Jonathan

Previous: chombee
Message 2 of 2 in “Git merge using patience diff?”
  1. chombeeApr 26, 2010
  2. Jonathan NiederApr 26, 2010

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.