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
Jakub Narebski <jnareb@gmail.com>
Date
Feb 5, 2007, 09:16 UTC
Message-ID
<200702051016.16785.jnareb@gmail.com>
In-Reply-To
<20070205024704.GB12917@spearce.org>
Shawn O. Pearce wrote:
Show 11 quoted lines
> Completing single character options is rather useless in my mind.
> The bash completion is always out of date with respect to the
> actual set of supported options, and by definition they are a
> single character.  Hitting '-<tab><tab>' to identify the list of
> supported options gives *no* detail about what the options do,
> and I still have to enter the option letter to complete it.
> 
> Completing `git am --w<tab>hitespace=s<tab>trip ` with just 6
> keystrokes on the other hand is very informative (whitespace,
> strip!) and saves many keystrokes.  That's why long options are
> supported, for at least the more commonly accessed ones.

It would be nice to have long option for each git command single character (short) option, for example --patch as long option to git-diff-tree -p option, etc.

-- 
Jakub Narebski
Poland
Previous: Shawn O. PearceNext: Shawn O. Pearce
Message 5 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.