From bf1c66ce5c49325edf7759253980290073c77f7e Mon Sep 17 00:00:00 2001 From: Marius Vollmer Date: Sun, 17 Aug 2008 02:32:07 +0300 Subject: [PATCH] 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. --- magit.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/magit.el b/magit.el index 89c6bd3d..5d6a2236 100644 --- a/magit.el +++ b/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)))