summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Vanicat <vanicat@debian.org>2008-02-29 18:28:19 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-03-01 05:22:18 (GMT)
commita1eebfb3a90b6c240afd1a32cfebe6ee5dbd72c5 (patch)
treef631c1fe0d3e91d0525d7eb97b4adaf4d9708f1e
parentf1a8cc635455a65567d040349327b9ea4adb479b (diff)
downloadgit-a1eebfb3a90b6c240afd1a32cfebe6ee5dbd72c5.zip
git-a1eebfb3a90b6c240afd1a32cfebe6ee5dbd72c5.tar.gz
git-a1eebfb3a90b6c240afd1a32cfebe6ee5dbd72c5.tar.bz2
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>
-rw-r--r--contrib/emacs/git.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/emacs/git.el b/contrib/emacs/git.el
index d8a0638..0312d89 100644
--- a/contrib/emacs/git.el
+++ b/contrib/emacs/git.el
@@ -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))