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: Sergey Organov
Subject: Re: vc-dir operation is very slow on large git repositories in Emacs 26.1
Date: Tue, 26 Jun 2018 18:14:40 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

>> Cc: address@hidden, address@hidden, address@hidden
>> From: Dmitry Gutov <address@hidden>
>> Date: Mon, 25 Jun 2018 15:55:38 +0300
>> 
>> It's used to obtain the list of conflicted files. Which is the new 
>> feature added in the bug report I've referenced.
>> 
>> I'm not quite sure why we have to fetch the list of all files in the 
>> repository to do that.
>> 
>> It seems like the approach was simply adapted from the 
>> ls-files-up-to-date stage, but that one is only called for a list of 
>> individual files, not for the status of a whole directory (e.g. whole 
>> repository).
>
> Maybe some Git expert could suggest a more economical way of doing the
> same?  (I'm not that expert.)

Not exactly an expert, but googling suggests 'git ls-files -u' as the
answer. Please be aware that the output will have 3 entries for every
conflicting file: merge base, theirs, and ours.

-- Sergey



reply via email to

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