Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
builtin rebase: actions require a rebase in progress
author
Pratik Karki
<predatoramigo@gmail.com>
Wed, 8 Aug 2018 15:06:21 +0000
(20:51 +0545)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 6 Sep 2018 18:55:58 +0000
(11:55 -0700)
This commit prevents actions (such as --continue, --skip) from running
when there is no rebase in progress.
Signed-off-by: Pratik Karki <predatoramigo@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/rebase.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
51e9ea6
)
diff --git
a/builtin/rebase.c
b/builtin/rebase.c
index 12d34848bd979cc1fe082fa2a9426d9676d83f04..9238757443832d2ec4b50edead00e1d7ac03ac10 100644
(file)
--- a/
builtin/rebase.c
+++ b/
builtin/rebase.c
@@
-577,6
+577,9
@@
int cmd_rebase(int argc, const char **argv, const char *prefix)
usage_with_options(builtin_rebase_usage,
builtin_rebase_options);
+ if (action != NO_ACTION && !in_progress)
+ die(_("No rebase in progress?"));
+
if (action == ACTION_EDIT_TODO && !is_interactive(&options))
die(_("The --edit-todo action can only be used during "
"interactive rebase."));