git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jonathan Nieder <jrnieder@gmail.com>
To: git@vger.kernel.org
Cc: chombee <chombee@lavabit.com>
Subject: Re: Git merge using patience diff?
Date: Mon, 26 Apr 2010 13:59:34 -0500	[thread overview]
Message-ID: <20100426185933.GA11518@progeny.tock> (raw)
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

      reply	other threads:[~2010-04-26 18:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-26 18:09 Git merge using patience diff? chombee
2010-04-26 18:59 ` Jonathan Nieder [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100426185933.GA11518@progeny.tock \
    --to=jrnieder@gmail.com \
    --cc=chombee@lavabit.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).