Ask the user when aborting a rebase.
This commit is contained in:
parent
0244b8b1b1
commit
c0abcc096a
1 changed files with 5 additions and 4 deletions
|
@ -89,10 +89,11 @@ current line down."
|
|||
(defun rebase-mode-abort ()
|
||||
"Abort this rebase."
|
||||
(interactive)
|
||||
(let ((buffer-read-only nil))
|
||||
(delete-region (point-min) (point-max))
|
||||
(save-buffer)
|
||||
(server-edit)))
|
||||
(when (y-or-n-p "Abort this rebase? ")
|
||||
(let ((buffer-read-only nil))
|
||||
(delete-region (point-min) (point-max))
|
||||
(save-buffer)
|
||||
(server-edit))))
|
||||
|
||||
(defun rebase-mode-kill-line ()
|
||||
"Kill the current action line."
|
||||
|
|
Loading…
Reference in a new issue