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

Re: [PATCH 1/8] bash: Remove short option completions for branch/checkout/diff.

From
Junio C Hamano <junkio@cox.net>
Date
Feb 4, 2007, 10:49 UTC
Message-ID
<7vr6t6rycz.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<eq4ccg$9ae$1@sea.gmane.org>
Jakub Narebski <jnareb@gmail.com> writes:
Show 14 quoted lines
> [Cc: git@vger.kernel.org]
>
> Shawn O. Pearce wrote:
>
>> The short options (-l, -f, -d) for git-branch are rather silly to
>> include in the completion generation as these options must be fully
>> typed out by the user and most users already know what the options
>> are anyway, so including them in the suggested completions does
>> not offer huge value.  (The same goes for git-checkout and git-diff.)
>
> Not true. It is nice to have on "git branch -" TAB TAB list of all 
> (well, all included in completion) short options to git-branch.
>
> So I'd vote NAK.
Ah, sorry, but it's already done.

I tried "git branch <TAB>" and saw hundreds of possibilities offered, and thought mixing -d/-l and friends are useless. I didn't think of the possibility of saying "git branch -<TAB>".

Presumably it was trying to suggest the <start-point> argument but that does not make much sense actually either.

Previous: Jakub NarebskiNext: Shawn O. Pearce
Message 3 of 6 in “bash: Remove short option completions for branch/checkout/diff.”
  1. 1/8 bash: Remove short option completions for branch/checkout/diff.Shawn O. Pearce, Feb 4, 2007
  2. Jakub NarebskiFeb 4, 2007
  3. Junio C HamanoFeb 4, 2007
  4. Shawn O. PearceFeb 5, 2007
  5. Jakub NarebskiFeb 5, 2007
  6. Shawn O. PearceFeb 5, 2007

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.