git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Unknown option for merge-recursive: -Xdiff-algorithm=minimal
@ 2013-09-24  9:00 Luke Noel-Storr
  2013-09-24 10:01 ` John Keeping
  0 siblings, 1 reply; 2+ messages in thread
From: Luke Noel-Storr @ 2013-09-24  9:00 UTC (permalink / raw)
  To: git@vger.kernel.org

Hi,

I'm trying to use the diff-algorithm option for recursive merge, but get the above error.  I've tried various different ways of specifying the option, but none work.

To try and find what the correct syntax is I tried peeping into the source code, and it looks like it may actually be an error in the code.

This is from merge-recursive.c line 2072:

	else if (!strcmp(s, "diff-algorithm=")) {
		long value = parse_algorithm_value(s+15);
		if (value < 0)
			return -1;
		/* clear out previous settings */
		DIFF_XDL_CLR(o, NEED_MINIMAL);
		o->xdl_opts &= ~XDF_DIFF_ALGORITHM_MASK;
		o->xdl_opts |= value;
	}

I believe !strcmp(s, "diff-algorithm=") should actually be !prefixcmp(s, "diff-algorithm=")

Could someone confirm this is a bug, and is there any other way I can specify the diff algorithm?


Many Thanks,

Luke Noel-Storr.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-09-24 10:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-24  9:00 Unknown option for merge-recursive: -Xdiff-algorithm=minimal Luke Noel-Storr
2013-09-24 10:01 ` John Keeping

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).