Make magit-reset-working-tree interactive.
* magit.el (magit-reset-working-tree): Add 'interactive' form.
This commit is contained in:
parent
7d0da4a5bd
commit
3c9bf0a0f2
1 changed files with 1 additions and 0 deletions
1
magit.el
1
magit.el
|
@ -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")))
|
||||
|
||||
|
|
Loading…
Reference in a new issue