emacs-devel
[Top][All Lists]
Advanced

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

Re: vc-dir operation is very slow on large git repositories in Emacs 26.


From: Dmitry Gutov
Subject: Re: vc-dir operation is very slow on large git repositories in Emacs 26.1
Date: Thu, 28 Jun 2018 16:28:56 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0

On 6/28/18 4:21 PM, Sergey Organov wrote:

In fact it could be that

$ git status -z

is the way to go, even though it will need changes in parsing.

Here is quote from 'git help status', for quick reference:

        -z
            Terminate entries with NUL, instead of LF. This implies the
            --porcelain output format if no other format is given.
[...]

        --porcelain
            Give the output in an easy-to-parse format for scripts. This is
            similar to the short output, but will remain stable across Git
            versions and regardless of user configuration. See below for
            details.


The output format is then carefully described later in the man-page.

Switching over to 'git status porcelain=v2' is a bigger enterprise, and we only want to do that after Git 2.11.0 (where version 2 was introduced) is old enough.



reply via email to

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