Ask the user when aborting a rebase.

This commit is contained in:
Phil Jackson 2010-05-31 16:51:06 +01:00
parent 0244b8b1b1
commit c0abcc096a

View file

@ -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."