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

Regression in git ls-files, or bug in completion?

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
Mar 22, 2020, 23:39 UTC
Message-ID
<CAMP44s2XuXrgBztke50YgnZ1SQh6gvR6cdLz064xDDK3+s2CSA@mail.gmail.com>
Hi,

I noticed a possible regression caused by commit b9670c1f5e (dir: fix checks on common prefix directory).

What is supposed to be the output of this?
  git init
  mkdir simple-dir
  touch simple-dir/empty
  git -C simple-dir ls-files --other --directory
Before it was "empty", now it is "./".

This causes bash's completion to be botched; "git add simple-dir/" adds "simple-dir/./".

Cheers.
-- 
Felipe Contreras
Next: Felipe Contreras
Message 1 of 4 in “Regression in git ls-files, or bug in completion?”
  1. Felipe ContrerasMar 22, 2020
  2. Felipe ContrerasMar 28, 2020
  3. Elijah NewrenMar 28, 2020
  4. Felipe ContrerasMar 31, 2020

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.