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>
Rémi Vanicat committed
Feb 29, 2008 at 19:28 UTC
a1eebfb3a90b6c240afd1a32cfebe6ee5dbd72c5
1 file changed
+1
-1
contrib/emacs/git.el
+1
-1
@@ -1432,7 +1432,7 @@ Commands:
1432
(with-current-buffer buffer
1433
(when (and list-buffers-directory
1434
(string-equal fulldir (expand-file-name list-buffers-directory))
1435
- (string-match "\\*git-status\\*$" (buffer-name buffer)))
1435
+ (eq major-mode 'git-status-mode))
1436
(setq found buffer))))
1437
(setq list (cdr list)))
1438
found))