summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 18e3e99)
raw | patch | inline | side by side (parent: 18e3e99)
author | Alexandre Julliard <julliard@winehq.org> | |
Sat, 4 Mar 2006 16:38:05 +0000 (17:38 +0100) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sat, 4 Mar 2006 21:46:13 +0000 (13:46 -0800) |
Also set the list-buffers-directory variable for nicer buffer list
display.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
display.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
contrib/emacs/git.el | patch | blob | history |
diff --git a/contrib/emacs/git.el b/contrib/emacs/git.el
index 5828d4c693e7f38b9b3e3e41994b5481babb9a97..2363e48c2998be39c72eebbb3e481d764b27ffd1 100644 (file)
--- a/contrib/emacs/git.el
+++ b/contrib/emacs/git.el
(erase-buffer)
(let ((status (ewoc-create 'git-fileinfo-prettyprint "" "")))
(set (make-local-variable 'git-status) status))
+ (set (make-local-variable 'list-buffers-directory) default-directory)
(run-hooks 'git-status-mode-hook)))
(defun git-status (dir)
(if (file-directory-p (concat (file-name-as-directory dir) ".git"))
(let ((buffer (create-file-buffer (expand-file-name "*git-status*" dir))))
(switch-to-buffer buffer)
- (git-status-mode)
(cd dir)
+ (git-status-mode)
(git-refresh-status)
(goto-char (point-min)))
(message "%s is not a git working tree." dir)))