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

Re: Bash completion doing full tree traversal?

From
ILIsaac Levy <ilevy@google.com>
Date
Sep 16, 2013, 15:54 UTC
Message-ID
<CADHXV5=ZVif6xppJgOXRKmqG9bBmAF0=A-sS9TUkH1RHSX9k6g@mail.gmail.com>
In-Reply-To
<CADHXV5kfaMm3nAEK_uR0McoAahj6pVtm=11Ei0_Y_teDJixWTQ@mail.gmail.com>

I should clarify that I had an untracked directory which contained a significant number of files; I can fix by adding it to gitignore. Still, the long delay & tree traversal were unexpected.

Isaac
On Sun, Sep 8, 2013 at 2:12 PM, Isaac Levy <ilevy@google.com> wrote:
Show 15 quoted lines
> I experienced a weird stall from git bash completion:
> $ git add p<TAB>
>
> I did some investigation and found this call trace:
>
> + __git_index_files '--others --modified' ''
>    ---> git ls-files --exclude-standard --others --modified
>
> This bash function captures output of the git call and strips all but
> the base directory or base filename.  The results are limited to
> entries in the current directory.
>
> Appears to be from fea16b47b603e and first released in v1.8.2 (I have 1.8.4).
>
> Isaac
Previous: Isaac LevyNext: SZEDER Gábor
Message 2 of 4 in “Bash completion doing full tree traversal?”
  1. Isaac LevySep 8, 2013
  2. Isaac LevySep 16, 2013
  3. completion: improve untracked directory filtering for filename completionSZEDER Gábor, Sep 18, 2013
  4. Jonathan NiederSep 19, 2013

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.