summaryrefslogtreecommitdiff
path: root/lisp/vc/vc-git.el
diff options
context:
space:
mode:
authorLeo Liu <sdl.web@gmail.com>2016-04-27 22:12:12 +0800
committerLeo Liu <sdl.web@gmail.com>2016-04-27 22:12:12 +0800
commit71fb0e06e7e04d8300be10feffd3d314a76b4d27 (patch)
treeb027ed8abc0b62afa2a32a1f197010dcc109f53c /lisp/vc/vc-git.el
parent6858e77c410a2bbaa96897a0283cf9571de9007b (diff)
downloademacs-71fb0e06e7e04d8300be10feffd3d314a76b4d27.tar.gz
Improve last change to vc-git-mode-line-string
* lisp/vc/vc-git.el (vc-git-mode-line-string): Better fix that caches the result.
Diffstat (limited to 'lisp/vc/vc-git.el')
-rw-r--r--lisp/vc/vc-git.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/vc/vc-git.el b/lisp/vc/vc-git.el
index d5ba0c8be7d..f35c84d50c5 100644
--- a/lisp/vc/vc-git.el
+++ b/lisp/vc/vc-git.el
@@ -278,7 +278,7 @@ Should be consistent with the Git config value i18n.logOutputEncoding."
(defun vc-git-mode-line-string (file)
"Return a string for `vc-mode-line' to put in the mode line for FILE."
- (let* ((rev (vc-git-working-revision file))
+ (let* ((rev (vc-working-revision file 'Git))
(disp-rev (or (vc-git--symbolic-ref file)
(substring rev 0 7)))
(def-ml (vc-default-mode-line-string 'Git file))