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

Re: Calling all bash completion experts..

From
Linus Torvalds <torvalds@osdl.org>
Date
Nov 25, 2006, 19:08 UTC
Message-ID
<Pine.LNX.4.64.0611251106250.6991@woody.osdl.org>
In-Reply-To
<20061125071351.GE4528@spearce.org>
On Sat, 25 Nov 2006, Shawn Pearce wrote:
Show 9 quoted lines
> 
> I added the nospace option because of the completion for fetch/push,
> cat-file, diff-tree and ls-tree.
> 
> The problem is the file completion for e.g. cat-file.  We don't
> want a space added after we complete a directory name, so you can
> complete further, e.g.:
> 
>   git cat-file -p ma<tab>con<tab>comp<tab>git-com<tab>

But that's how directory completion _always_ works. Completion doesn't add spaces to directories anyway, it adds a "/".

The branch-name thing is well-taken: you don't want to add a space after a branch-name, although neither do you want to add a ":" by default.

So "nospace" after a branch (or tag) name sounds sane, but nowhere else that I can see.

Previous: Shawn PearceNext: Shawn Pearce
Message 3 of 4 in “Calling all bash completion experts..”
  1. Linus TorvaldsNov 23, 2006
  2. Shawn PearceNov 25, 2006
  3. Linus TorvaldsNov 25, 2006
  4. Shawn PearceNov 26, 2006

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.