Be more verbose.

This commit is contained in:
Marius Vollmer 2008-08-08 19:01:24 +03:00
parent bd27dcd948
commit db13d0c863

View file

@ -502,11 +502,12 @@ pushed.
;;; Resetting ;;; Resetting
(defun magit-reset-soft (target) (defun magit-reset-soft (target)
(interactive (list (read-string "Reset to: " "HEAD^"))) (interactive (list (read-string "Reset history to: " "HEAD^")))
(magit-run "git" "reset" "--soft" target)) (magit-run "git" "reset" "--soft" target))
(defun magit-reset-hard (target) (defun magit-reset-hard (target)
(interactive (list (read-string "Hard reset to: " "HEAD"))) (interactive (list (read-string "Reset working tree (and history) to: "
"HEAD")))
(if (yes-or-no-p (if (yes-or-no-p
(format "Hard reset to %s and throw away all uncommitted changes? " (format "Hard reset to %s and throw away all uncommitted changes? "
target)) target))