summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2011-07-09 11:01:54 -0400
committerOwen W. Taylor <otaylor@fishsoup.net>2012-03-01 13:21:17 -0500
commit483d5e258f14176ed3cacd1138fae723a6a5fce3 (patch)
treedc60fb159577ab1871581bbcc1d010dd29ad63c6
parentf0e8b5c7233882f948a2638ae2711862477692fa (diff)
apply: pass "-3" to git-am
Using 3-way merge makes it much more likely that the patch will apply correctly when the local tree is newer than the tree that the patch was generated from, and if the patch doesn't apply cleanly, git will leave a file with conflict markers rather than forcing you to reapply the patch manually. https://bugzilla.gnome.org/show_bug.cgi?id=657558
-rwxr-xr-xgit-bz2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-bz b/git-bz
index 7d8d804..cfda958 100755
--- a/git-bz
+++ b/git-bz
@@ -1552,7 +1552,7 @@ def do_apply(bug_reference):
f.close()
try:
- process = git.am(filename, _interactive=True)
+ process = git.am("-3", filename, _interactive=True)
except CalledProcessError:
print "Patch left in %s" % filename
break