emacs-devel
[Top][All Lists]
Advanced

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

Re: [Emacs-diffs] emacs-25 e55d0db: Fix revision calculation in vc-git-m


From: Dmitry Gutov
Subject: Re: [Emacs-diffs] emacs-25 e55d0db: Fix revision calculation in vc-git-mode-line-string
Date: Wed, 27 Apr 2016 12:40:46 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0

On 04/27/2016 08:19 AM, Leo Liu wrote:
branch: emacs-25
commit e55d0db95700edd11e71660729566c67b6c563b3
Author: Leo Liu <address@hidden>
Commit: Leo Liu <address@hidden>

    Fix revision calculation in vc-git-mode-line-string

    * lisp/vc/vc-git.el (vc-git-mode-line-string): Use
      vc-git-working-revision because vc-working-revision needs to decide
      the backend and may return nil.

Why was that bad?

vc-working-revision also caches the result, and vc-git-working-revision does not. Do you want Emacs to call Git multiple times per second?




reply via email to

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