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

Re: git-completion.bash should not add a space after a ref

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 13, 2013, 23:16 UTC
Message-ID
<7vk3rghdwv.fsf@alter.siamese.dyndns.org>
In-Reply-To
<50F1AD0F.7080503@gmail.com>
Manlio Perillo <manlio.perillo@gmail.com> writes:
Show 12 quoted lines
> This is not really a bug, but a small usability problem.
>
> When completing a reference, Bash will add a space after the reference name.
>
> As an example in:
>
>     $git show master<TAB>
>
> The problem is that an user may want to show a tree or blog object from
> master:
>
>     $git show master:git.c
Or the user may want to see only changes to the documentation, e.g.
	$ git show master Documentation/
so removing a SP is a regression in the other way around.

Given that "refer to an object in a tree" is a much less often used operation, I have a feeling that the current behaviour happens to make a good trade-off between these two conflicting purposes that cannot be satisfied both at the same time.

Previous: Manlio Perillo
Message 2 of 2 in “git-completion.bash should not add a space after a ref”
  1. Manlio PerilloJan 12, 2013
  2. Junio C HamanoJan 13, 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.