summaryrefslogtreecommitdiff
path: root/sequencer.c
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2018-05-03 23:01:29 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-05-06 04:21:58 (GMT)
commit8fa6eea0ffd271f0564048dc939987e9640efca5 (patch)
tree0af599a25e6680e388b0bc623e14c184c91ea99a /sequencer.c
parent9c85a1c29c5ac26c94aa6eda8da9bbfbc6751785 (diff)
downloadgit-8fa6eea0ffd271f0564048dc939987e9640efca5.zip
git-8fa6eea0ffd271f0564048dc939987e9640efca5.tar.gz
git-8fa6eea0ffd271f0564048dc939987e9640efca5.tar.bz2
rebase --rebase-merges: root commits can be cousins, too
Reported by Wink Saville: when rebasing with no-rebase-cousins, we will want to refrain from rebasing all of them, even when they are root commits. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sequencer.c')
-rw-r--r--sequencer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sequencer.c b/sequencer.c
index 65a8c49..01e561b 100644
--- a/sequencer.c
+++ b/sequencer.c
@@ -3903,7 +3903,8 @@ static int make_script_with_merges(struct pretty_print_context *pp,
}
if (!commit)
- fprintf(out, "%s onto\n", cmd_reset);
+ fprintf(out, "%s %s\n", cmd_reset,
+ rebase_cousins ? "onto" : "[new root]");
else {
const char *to = NULL;