Make magit-reset-working-tree interactive.

* magit.el (magit-reset-working-tree): Add 'interactive' form.
This commit is contained in:
Marius Vollmer 2008-08-17 00:43:49 +03:00
parent 7d0da4a5bd
commit 3c9bf0a0f2

View file

@ -733,6 +733,7 @@ pushed.
(magit-run "git" "reset" "--soft" (magit-rev-to-git rev))))
(defun magit-reset-working-tree ()
(interactive)
(if (yes-or-no-p "Discard all uncommitted changes? ")
(magit-run "git" "reset" "--hard")))