Thread (2 messages) flat view 2 messages, 2 authors, 2016-06-15
DORMANTno replies REVIEWED: 2 (0M)

2 review trailers.

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

From: Rémi Vanicat <hidden>
Date: 2016-06-15 22:44:18
Subsystem: the rest · Maintainer: Linus Torvalds

Possibly related (same subject, not in this thread)

git-status used the buffer name to find git-status buffers, and that
could failed if the buffer had another name, for example when multiple
working directories was tracked.
Signed-off-by: Rémi Vanicat <redacted>
Acked-by: Alexandre Julliard <redacted>
Tested-by: Xavier Maillard <redacted>
---
Resend as requested
 contrib/emacs/git.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/contrib/emacs/git.el b/contrib/emacs/git.el
index f69b697..14a1601 100644
--- a/contrib/emacs/git.el
+++ b/contrib/emacs/git.el
@@ -1545,7 +1545,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))
-- 
1.5.4.2.191.g7b407


-- 
Rémi Vanicat

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help