Add "quit" choice to push.pl
This commit is contained in:
parent
1cf7e588e8
commit
0d21a376fe
7
push.pl
7
push.pl
|
|
@ -108,10 +108,15 @@ sub prompt_for_edit {
|
||||||
|
|
||||||
my $reply = $term->get_reply(
|
my $reply = $term->get_reply(
|
||||||
prompt => 'Apply changes?',
|
prompt => 'Apply changes?',
|
||||||
choices => [ qw( yes vimdiff no ) ],
|
choices => [ qw( yes vimdiff no quit ) ],
|
||||||
default => 'yes',
|
default => 'yes',
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if ($reply eq 'quit') {
|
||||||
|
say 'quitting, as requested';
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
if ($reply eq 'yes') {
|
if ($reply eq 'yes') {
|
||||||
return $proposedText;
|
return $proposedText;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue