emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-25 71fb0e0: Improve last change to vc-git-mode-line-


From: Leo Liu
Subject: [Emacs-diffs] emacs-25 71fb0e0: Improve last change to vc-git-mode-line-string
Date: Wed, 27 Apr 2016 14:16:20 +0000

branch: emacs-25
commit 71fb0e06e7e04d8300be10feffd3d314a76b4d27
Author: Leo Liu <address@hidden>
Commit: Leo Liu <address@hidden>

    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.
---
 lisp/vc/vc-git.el |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/vc/vc-git.el b/lisp/vc/vc-git.el
index d5ba0c8..f35c84d 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))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]