[PATCH 1/1] Add --first-parent support to interactive rebase.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Björn Steinbrink
Date: Tuesday, October 30, 2007 - 7:21 pm

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
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/1] Add --first-parent support to interactive rebase., Björn Steinbrink, (Tue Oct 30, 7:21 pm)
Re: [PATCH 1/1] Add --first-parent support to interactive ..., Johannes Schindelin, (Tue Oct 30, 8:34 pm)
Re: [PATCH 1/1] Add --first-parent support to interactive ..., Johannes Schindelin, (Tue Oct 30, 9:50 pm)
Re: [PATCH 1/1] Add --first-parent support to interactive ..., Wincent Colaiuta, (Wed Oct 31, 1:24 am)