Let magit-status always ask for the directory.

* magit.el (magit-read-top-dir): Removed 'prefix' argument.  Always ask.
This commit is contained in:
Marius Vollmer 2008-09-25 23:21:59 +03:00
parent 87a437fab9
commit 0e1d9ddbbb

View file

@ -192,11 +192,10 @@ Many Magit faces inherit from this one by default."
(substring head 11)
nil)))
(defun magit-read-top-dir (prefix)
(let ((dir (magit-get-top-dir default-directory)))
(if (or (not dir) prefix)
(magit-get-top-dir (read-directory-name "Git repository: " dir))
dir)))
(defun magit-read-top-dir ()
(magit-get-top-dir
(read-directory-name "Git repository: "
(magit-get-top-dir default-directory))))
(defun magit-name-rev (rev)
(and rev
@ -1247,7 +1246,7 @@ Please see the manual for a complete description of Magit.
(magit-insert-unpushed-commits remote branch))))))
(defun magit-status (dir)
(interactive (list (magit-read-top-dir current-prefix-arg)))
(interactive (list (magit-read-top-dir)))
(save-some-buffers)
(let* ((topdir (magit-get-top-dir dir))
(buf (or (magit-find-buffer 'status topdir)