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:
Marius Vollmer 2008-08-17 02:32:07 +03:00
parent 6a0b8c83e4
commit bf1c66ce5c

View file

@ -126,8 +126,7 @@
(defun magit-read-rev (prompt &optional def) (defun magit-read-rev (prompt &optional def)
(let* ((prompt (if def (let* ((prompt (if def
(format "%s (default %s): " prompt (format "%s (default %s): " prompt def)
(magit-rev-describe def))
(format "%s: " prompt))) (format "%s: " prompt)))
(rev (completing-read prompt (magit-list-interesting-revisions) (rev (completing-read prompt (magit-list-interesting-revisions)
nil nil nil nil def))) nil nil nil nil def)))