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

Bash completion doing full tree traversal?

From
ILIsaac Levy <ilevy@google.com>
Date
Sep 8, 2013, 12:12 UTC
Message-ID
<CADHXV5kfaMm3nAEK_uR0McoAahj6pVtm=11Ei0_Y_teDJixWTQ@mail.gmail.com>

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
Next: Isaac Levy
Message 1 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.