From: Björn Steinbrink Date: Wed, 31 Oct 2007 02:21:49 GMT Subject: [PATCH 1/1] Add --first-parent support to interactive rebase. Message-ID: <1193797309-1161-1-git-send-email-B.Steinbrink@gmx.de> By default, rebase will take all commits from the branch that is to be rebased which are missing in upstream. The new --first-parent option allows to just follow the first parent and thus completely ignore merges. Additionally, when used together with --preserve-merges (which is the more useful use-case) it will no longer rebase the commits from the merged-in branches, but instead redo the merge with the original parents. That means that: ---H------I topicB / \ \ | D---E---F--G topicA |/ A---B---C master does no longer become: -H'--------I' / \ \ D'---E'---F'---G' topicA / A---B---C master \ H---I topicB but instead: A---B---C master \ \ \ D'---E'---F'---G' topicA \ / / ---------H---------I topicB Signed-off-by: Björn Steinbrink diff --git a/Documentation/git-rebase.txt b/Documentation/git-rebase.txt index e4326d3..0b5f4b6 100644 --- a/Documentation/git-rebase.txt +++ b/Documentation/git-rebase.txt @@ -10,7 +10,7 @@ SYNOPSIS [verse] 'git-rebase' [-i | --interactive] [-v | --verbose] [-m | --merge] [-C] [ --whitespace=