Be more verbose.
This commit is contained in:
parent
bd27dcd948
commit
db13d0c863
1 changed files with 3 additions and 2 deletions
5
magit.el
5
magit.el
|
@ -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))
|
||||||
|
|
Loading…
Reference in a new issue