unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH] contrib/nmbug: use "resolve" merge strategy
@ 2012-03-31 12:12 david
  2012-04-01 18:28 ` [PATCH] nmbug: check whether every forked process exit with (non)zero value Tomi Ollila
  2012-04-17 21:00 ` [PATCH] contrib/nmbug: use "resolve" merge strategy Tomi Ollila
  0 siblings, 2 replies; 4+ messages in thread
From: david @ 2012-03-31 12:12 UTC (permalink / raw)
  To: notmuch; +Cc: David Bremner

From: David Bremner <bremner@debian.org>

The recursive merge strategy does rename detection, which yields false
positives (and hence spurious merge conflicts) when merging trees of
empty files.
---
 An unresolved issue (ho ho) is the fact that failed merge operations
 are still not detected. This needs more thought, but I thought this 
 patch might save people some pain in the meantime. It isn't very heavily 
 tested, though.

 contrib/nmbug |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/contrib/nmbug b/contrib/nmbug
index bb0739f..0ed3c29 100755
--- a/contrib/nmbug
+++ b/contrib/nmbug
@@ -302,7 +302,7 @@ sub do_merge {
 
   git ( { GIT_WORK_TREE => $tempwork }, 'checkout', '-f', 'HEAD');
 
-  git ( { GIT_WORK_TREE => $tempwork }, 'merge', 'FETCH_HEAD');
+  git ( { GIT_WORK_TREE => $tempwork }, 'merge', '-s', 'resolve', 'FETCH_HEAD');
 
   do_checkout ();
 }
-- 
1.7.9.1

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

end of thread, other threads:[~2012-06-03 16:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-31 12:12 [PATCH] contrib/nmbug: use "resolve" merge strategy david
2012-04-01 18:28 ` [PATCH] nmbug: check whether every forked process exit with (non)zero value Tomi Ollila
2012-06-03 16:56   ` David Bremner
2012-04-17 21:00 ` [PATCH] contrib/nmbug: use "resolve" merge strategy Tomi Ollila

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

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 read-only IMAP folder(s) and NNTP newsgroup(s).