Code

rebase -i: do not fail when there is no commit to cherry-pick
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Fri, 10 Oct 2008 11:42:12 +0000 (13:42 +0200)
committerShawn O. Pearce <spearce@spearce.org>
Fri, 10 Oct 2008 15:32:03 +0000 (08:32 -0700)
commitff74126c03a8dfd04e7533573a5c420f2a7112ac
treedeb3f4fa7b69bf1574706bbc57c62cd5b984c820
parentb8eecafd888d219633f4c29e8b6a90fc21a46dfd
rebase -i: do not fail when there is no commit to cherry-pick

In case there is no commit to apply (for example because you rebase to
upstream and all your local patches have been applied there), do not
fail.  The non-interactive rebase already behaves that way.

Do this by introducing a new command, "noop", which is substituted for
an empty commit list, so that deleting the commit list can still abort
as before.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-rebase--interactive.sh
t/t3404-rebase-interactive.sh