Provide promised default for magit-reset-head.
This commit is contained in:
parent
a21e998bac
commit
edc4aa78d9
1 changed files with 1 additions and 1 deletions
2
magit.el
2
magit.el
|
@ -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))))
|
||||
|
||||
|
|
Loading…
Reference in a new issue