summaryrefslogtreecommitdiff
path: root/lisp/vc-git.el
diff options
context:
space:
mode:
authorDan Nicolaescu <dann@ics.uci.edu>2008-07-22 02:20:10 +0000
committerDan Nicolaescu <dann@ics.uci.edu>2008-07-22 02:20:10 +0000
commitd1bfcce10871c6def89b62f1fdce28edb2f60ca5 (patch)
tree71629f35b78e3953fe2c645fa7e122128899fee1 /lisp/vc-git.el
parent776f7a5f62528f5c6f9dc019bab92a53fa3a11cb (diff)
downloademacs-d1bfcce10871c6def89b62f1fdce28edb2f60ca5.tar.gz
(vc-git-status-printer): Update the directory display
to match the default.
Diffstat (limited to 'lisp/vc-git.el')
-rw-r--r--lisp/vc-git.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/vc-git.el b/lisp/vc-git.el
index 9f18418425e..5c0b9129485 100644
--- a/lisp/vc-git.el
+++ b/lisp/vc-git.el
@@ -268,9 +268,8 @@
(defun vc-git-status-printer (info)
"Pretty-printer for the vc-dir-fileinfo structure."
- (let* ((state (if (vc-dir-fileinfo->directory info)
- 'DIRECTORY
- (vc-dir-fileinfo->state info)))
+ (let* ((isdir (vc-dir-fileinfo->directory info))
+ (state (if isdir "" (vc-dir-fileinfo->state info)))
(extra (vc-dir-fileinfo->extra info))
(old-perm (when extra (vc-git-extra-fileinfo->old-perm extra)))
(new-perm (when extra (vc-git-extra-fileinfo->new-perm extra))))