git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Bash completion very slow in large repo

From
D. Ben Knoble <ben.knoble@gmail.com>
Date
Aug 15, 2026, 14:17 UTC
Message-ID
<CALnO6CAWA4szRqq_=1kAjB_y6WqA5zSyyMZzPmgnV7KGb+AS7Q@mail.gmail.com>
In-Reply-To
<an9iXOqOOvFfyN4A@desktop>

On Fri, Aug 14, 2026 at 2:55 PM Matthew Hughes <matthewhughes934@gmail.com> wrote:

Show 8 quoted lines
>
> 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

Previous: Matthew HughesNext: Matthew Hughes
Message 2 of 4 in “Bash completion very slow in large repo”
  1. Matthew HughesAug 14, 2026
  2. D. Ben KnobleAug 15, 2026
  3. Matthew HughesAug 15, 2026
  4. Matthew HughesAug 19, 2026

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.