Provide promised default for magit-reset-head.

This commit is contained in:
Marius Vollmer 2008-08-17 02:59:50 +03:00
parent a21e998bac
commit edc4aa78d9

View file

@ -733,7 +733,7 @@ pushed.
;;; Resetting
(defun magit-reset-head (rev)
(interactive (list (magit-read-rev "Reset head to")))
(interactive (list (magit-read-rev "Reset head to" (magit-default-rev))))
(if rev
(magit-run "git" "reset" "--soft" (magit-rev-to-git rev))))