Make status buffer names special. Thanks to John Wiegley!

* magit.el (magit-status): Use a name of the form "*magit: foo*
instead of just "foo".
This commit is contained in:
Marius Vollmer 2008-08-24 00:59:10 +03:00
parent 27e1666786
commit dc371ff868

View file

@ -641,8 +641,11 @@ Please see the manual for a complete description of Magit.
(save-some-buffers)
(let* ((topdir (magit-get-top-dir dir))
(buf (or (magit-find-status-buffer topdir)
(create-file-buffer (file-name-nondirectory
(directory-file-name topdir))))))
(switch-to-buffer
(generate-new-buffer
(concat "*magit: "
(file-name-nondirectory
(directory-file-name topdir)) "*"))))))
(switch-to-buffer buf)
(magit-mode-init topdir 'status)
(magit-update-status buf)))