mirror of
https://github.com/git/git.git
synced 2024-11-28 04:23:30 +08:00
git-rebase: Use --ignore-if-in-upstream option when executing git-format-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>
This commit is contained in:
parent
45bf473a7b
commit
a6ec3c1599
@ -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 $?
|
||||
|
Loading…
Reference in New Issue
Block a user