From 76b90289f6bbd304e35d984cebd28a1cbc14d4fe Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 4 Aug 2018 14:31:41 +0100 Subject: git-debrebase: scrap: Run git-rebase --abort if applicable Signed-off-by: Ian Jackson --- git-debrebase | 3 +++ git-debrebase.1.pod | 2 ++ 2 files changed, 5 insertions(+) diff --git a/git-debrebase b/git-debrebase index f4831c3..24be35e 100755 --- a/git-debrebase +++ b/git-debrebase @@ -1593,6 +1593,9 @@ sub cmd_conclude () { } sub cmd_scrap () { + if (currently_rebasing()) { + runcmd @git, qw(rebase --abort); + } my ($ffq_prev, $gdrlast, $ffq_prev_commitish) = ffq_prev_info(); if (!$ffq_prev_commitish) { fail "No ongoing git-debrebase session." unless $opt_noop_ok; diff --git a/git-debrebase.1.pod b/git-debrebase.1.pod index 28f3084..fe65674 100644 --- a/git-debrebase.1.pod +++ b/git-debrebase.1.pod @@ -111,6 +111,8 @@ because that launders the branch too. Throws away all the work since the branch was last stitched. This is done by rewinding you to ffq-prev. +If you are in the middle of a git-rebase, will abort that too. + =item git-debrebase new-upstream [...] Rebases the delta queue -- cgit v1.2.3