threads / patch / 5797

patchgit-rebase: Use --ignore-if-in-upstream option when executing git-format-patch.

Subject: [PATCH] git-rebase: Use --ignore-if-in-upstream option when executing git-format-patch.

## tl;dr

One message between Oct 3, 2006 and Oct 3, 2006. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Robert Shearman· Oct 3, 2006, 16:29 UTC · lore

This reduces the number of conflicts when rebasing after a series of patches to the same piece of code is committed upstream.

Signed-off-by: Robert Shearman <rob@codeweavers.com>
---
  git-rebase.sh |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)
Show changes to git-rebase.sh +1 −1
diff --git a/git-rebase.sh b/git-rebase.sh
index a7373c0..413636e 100755
--- a/git-rebase.sh
+++ b/git-rebase.sh
@@ -286,7 +286,7 @@ fi
 
 if test -z "$do_merge"
 then
-	git-format-patch -k --stdout --full-index "$upstream"..ORIG_HEAD |
+	git-format-patch -k --stdout --full-index --ignore-if-in-upstream "$upstream"..ORIG_HEAD |
 	git am --binary -3 -k --resolvemsg="$RESOLVEMSG" \
 		--reflog-action=rebase
 	exit $?

← back to recent threads