diff options
author | Chris Webb <chris@arachsys.com> | 2012-06-26 22:55:23 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-06-26 15:08:10 -0700 |
commit | df5df20c1308f936ea542c86df1e9c6974168472 (patch) | |
tree | 55d02ad50947cd1a71709572095294106f19ed22 /t | |
parent | bc9e7dd41fe8b51cc7f2e79312a2ff777899f930 (diff) | |
download | git-df5df20c1308f936ea542c86df1e9c6974168472.tar.gz git-df5df20c1308f936ea542c86df1e9c6974168472.tar.xz |
rebase -i: support --root without --onto
Allow --root to be specified to rebase -i without --onto, making it
possible to edit and re-order all commits right back to the root(s).
If there is a conflict to be resolved when applying the first change,
the user will expect a sane index and working tree to get sensible
behaviour from git-diff and friends, so create a sentinel commit with an
empty tree to rebase onto. Automatically squash the sentinel with any
commits rebased directly onto it, so they end up as root commits in
their own right and retain their authorship and commit message.
Implicitly use rebase -i for non-interactive rebase of --root without
an --onto argument now that rebase -i can correctly do this.
Signed-off-by: Chris Webb <chris@arachsys.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
0 files changed, 0 insertions, 0 deletions