Don't be too clever when showing default revisions.
* magit.el (magit-read-rev): Do not use magit-rev-describe when formatting the default value for the prompt. This is misleading since it might use names of branches etc while in reality we are might be offering a raw commit.
This commit is contained in:
parent
6a0b8c83e4
commit
bf1c66ce5c
1 changed files with 1 additions and 2 deletions
3
magit.el
3
magit.el
|
@ -126,8 +126,7 @@
|
|||
|
||||
(defun magit-read-rev (prompt &optional def)
|
||||
(let* ((prompt (if def
|
||||
(format "%s (default %s): " prompt
|
||||
(magit-rev-describe def))
|
||||
(format "%s (default %s): " prompt def)
|
||||
(format "%s: " prompt)))
|
||||
(rev (completing-read prompt (magit-list-interesting-revisions)
|
||||
nil nil nil nil def)))
|
||||
|
|
Loading…
Reference in a new issue