Skip to content

Commit

Permalink
git.el: find the git-status buffer whatever its name is
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rémi Vanicat authored and Junio C Hamano committed Mar 1, 2008
1 parent f1a8cc6 commit a1eebfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/emacs/git.el
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit a1eebfb

Please sign in to comment.