Skip to content

Commit

Permalink
git-rebase: Use --ignore-if-in-upstream option when executing git-for…
Browse files Browse the repository at this point in the history
…mat-patch.

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>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Robert Shearman authored and Junio C Hamano committed Nov 9, 2006
1 parent 45bf473 commit a6ec3c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-rebase.sh
Expand Up @@ -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 $?
Expand Down

0 comments on commit a6ec3c1

Please sign in to comment.