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

Re: [PATCH] On error, do not list all commands, but point to --help option.

From
Shawn O. Pearce <spearce@spearce.org>
Date
Oct 21, 2007, 03:29 UTC
Message-ID
<20071021032953.GC14735@spearce.org>
In-Reply-To
<20071021032427.GB8545@coredump.intra.peff.net>
Jeff King <peff@peff.net> wrote:
Show 7 quoted lines
> On Sat, Oct 20, 2007 at 10:06:53PM -0400, Shawn O. Pearce wrote:
> 
> > I actually had to do `git config alias.upsh push` just to keep
> > myself from screaming every time I made a small typo and Git gave
> > me a screenful of "helpful reminders".
> 
> Yeah, somebody should really work on bash completion...
  $ git pu<TAB><TAB>
  pull     push

By the time I type out "pus" and hit tab I've already typed out the name "push ". Except I frequently find myself getting the u before the p, which can't complete. Of course with the above alias in place "git u<TAB>" completes out uniquely to "git push " (between bash completion and the alias expansion).

But that alias isn't there for my bash tab completion. Its there exactly because otherwise "git upsh" gives me 31 lines of useless (to me) output without it.

-- 
Shawn.
Previous: Jeff KingNext: Yin Ping
Message 7 of 16 in “On error, do not list all commands, but point to --help option.”
  1. On error, do not list all commands, but point to --help option.Jari Aalto, Oct 20, 2007
  2. Johannes SchindelinOct 20, 2007
  3. Jari AaltoOct 20, 2007
  4. Johannes SchindelinOct 20, 2007
  5. Shawn O. PearceOct 21, 2007
  6. Jeff KingOct 21, 2007
  7. Shawn O. PearceOct 21, 2007
  8. Yin PingOct 21, 2007
  9. Wincent ColaiutaOct 21, 2007
  10. Andreas EricssonOct 21, 2007
  11. Jan HudecOct 21, 2007
  12. Andreas EricssonOct 21, 2007
  13. Salikh ZakirovOct 24, 2007
  14. On error, do not list all commands, but point to --help optionJari Aalto, Oct 20, 2007
  15. Shawn O. PearceOct 21, 2007
  16. Jan HudecOct 21, 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.