aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorRémi Vanicat <vanicat@debian.org>2008-02-29 19:28:19 +0100
committerJunio C Hamano <gitster@pobox.com>2008-02-29 21:22:18 -0800
commita1eebfb3a90b6c240afd1a32cfebe6ee5dbd72c5 (patch)
treef631c1fe0d3e91d0525d7eb97b4adaf4d9708f1e /contrib
parentf1a8cc635455a65567d040349327b9ea4adb479b (diff)
downloadgit-a1eebfb3a90b6c240afd1a32cfebe6ee5dbd72c5.tar.gz
git-a1eebfb3a90b6c240afd1a32cfebe6ee5dbd72c5.tar.xz
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>
Diffstat (limited to 'contrib')
-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 d8a06381f..0312d891f 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))