Re: Bash completion very slow in large repo

"D. Ben Knoble" <[email protected]>
Newsgroups org.kernel.vger.git
Message-ID <CALnO6CAWA4szRqq_=1kAjB_y6WqA5zSyyMZzPmgnV7KGb+AS7Q@mail.gmail.com>
On Fri, Aug 14, 2026 at 2:55 PM Matthew Hughes
<[email protected]> wrote:
>
> Hi,
>
> While working in a repo with _a lot_ of directories I've noticed a painful
> slowdown in some of the bash completion for git. Specifically, for any
> completion that calls `git ls-files` and needs to iterate through the
> file-system (and not just check the index), e.g. `git add`. Has anyone run into
> this? Are there existing solutions or workarounds?

Hi Matt, have you tried turning on "feature.manyFiles"? That enables a
few things (like the fsmonitor) that might help in large repositories.

[snip]

Best,
Ben
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.