git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] rebase-i: keep old parents when preserving merges
@ 2008-07-16  1:51 Stephan Beyer
  2008-07-16  2:26 ` Stephan Beyer
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Stephan Beyer @ 2008-07-16  1:51 UTC (permalink / raw)
  To: Johannes Schindelin; +Cc: git, Stephan Beyer

This patch fixes two issues for rebase -i with preserving
merges of unrelated branches.

Merge parents that are part of an unrelated branch have not been
kept as a parent in some cases.
That means, a rewritten merge commit has either lost a parent
or rebase tried to cherry-pick this merge commit which resulted
in an error.

Signed-off-by: Stephan Beyer <s-beyer@gmx.net>
---
 git-rebase--interactive.sh |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/git-rebase--interactive.sh b/git-rebase--interactive.sh
index a35212d..0df7640 100755
--- a/git-rebase--interactive.sh
+++ b/git-rebase--interactive.sh
@@ -174,6 +174,8 @@ pick_one_preserving_merges () {
 				new_parents="$new_parents $new_p"
 				;;
 			esac
+		else
+			new_parents="$new_parents $p"
 		fi
 	done
 	case $fast_forward in
-- 
1.5.6.3.357.ge6ecd

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

end of thread, other threads:[~2008-07-16 21:52 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-16  1:51 [PATCH] rebase-i: keep old parents when preserving merges Stephan Beyer
2008-07-16  2:26 ` Stephan Beyer
2008-07-16  2:33 ` Johannes Schindelin
2008-07-16  9:43   ` Stephan Beyer
2008-07-16 10:24     ` Johannes Schindelin
2008-07-16 21:36 ` Junio C Hamano
2008-07-16 21:51   ` Stephan Beyer

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 NNTP newsgroup(s).