diff options
author | Sean Allred <allred.sean@gmail.com> | 2024-09-29 04:00:32 +0300 |
---|---|---|
committer | Dmitry Gutov <dmitry@gutov.dev> | 2024-09-29 04:02:13 +0300 |
commit | 8d9a4647fbc6c57e82045ecd2b3f157ece399e9e (patch) | |
tree | f016370fc2e310a68b7105d58fa381acaecdf3ce /lisp/emacs-lisp/comp-run.el | |
parent | c934450d14dacfef5e846a743d9637ba1ec6f5a3 (diff) | |
download | emacs-8d9a4647fbc6c57e82045ecd2b3f157ece399e9e.tar.gz emacs-8d9a4647fbc6c57e82045ecd2b3f157ece399e9e.tar.bz2 emacs-8d9a4647fbc6c57e82045ecd2b3f157ece399e9e.zip |
project--vc-list-files: Use '--sparse' with 'git ls-files'
When dealing with exceptionally large Git repositories, the
performance of `project-find-file` can suffer dramatically as
the list of files is collected for completion. This adds insult
to injury when you consider cases where the developer has
configured the repository to use a sparse checkout where the
vast majority of these files are not even present on disk and
are not valid candidates for completion.
* lisp/progmodes/project.el (project--vc-list-files):
Pass 'sparse' to 'git ls-files' when Git is recent enough.
Filter out file names that end with '/' (bug#73320).
Diffstat (limited to 'lisp/emacs-lisp/comp-run.el')
0 files changed, 0 insertions, 0 deletions