git.el: find the git-status buffer whatever its name is

git-status used the buffer name to find git-status buffers, and that
can fail if the buffer has another name, for example when multiple
working directories is tracked.

Signed-off-by: Rémi Vanicat <vanicat@debian.org>
Acked-by: Alexandre Julliard <julliard@winehq.org>
Tested-by: Xavier Maillard <xma@gnu.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Rémi Vanicat 2008-02-29 19:28:19 +01:00 коммит произвёл Junio C Hamano
Родитель f1a8cc6354
Коммит a1eebfb3a9
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -1432,7 +1432,7 @@ Commands:
(with-current-buffer buffer
(when (and list-buffers-directory
(string-equal fulldir (expand-file-name list-buffers-directory))
(string-match "\\*git-status\\*$" (buffer-name buffer)))
(eq major-mode 'git-status-mode))
(setq found buffer))))
(setq list (cdr list)))
found))