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

Re: [PATCH] git-stash: Display help message if git-stash is run with wrong sub-commands

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Dec 3, 2007, 10:25 UTC
Message-ID
<Pine.LNX.4.64.0712031023480.27959@racer.site>
In-Reply-To
<20071203061617.GB1976@blorf.net>
Hi,
On Sun, 2 Dec 2007, Wayne Davison wrote:
Show 6 quoted lines
> On Mon, Dec 03, 2007 at 10:34:05AM +0800, Kevin Leung wrote:
> > +USAGE='[  | save | list | show | apply | clear ]'
> 
> It seems strange to me that git stash is using sub-sub-command words 
> instead of options.  Would it make more sense to be more like git branch 
> and have a list be indicated by -l, etc.?

But those are not really options, are they? They are commands, which exclude each other. And even if they are sub-sub-commands, why should we not rather fix "git branch" to support a sane syntax, too?

We could even put some general support into parse-options.[ch] for sub-commands.

Ciao, Dscho

Previous: Wayne DavisonNext: Wayne Davison
Message 5 of 6 in “git-stash: Display help message if git-stash is run with wrong sub-commands”
  1. git-stash: Display help message if git-stash is run with wrong sub-commandsKevin Leung, Dec 3, 2007
  2. Junio C HamanoDec 3, 2007
  3. Kevin LeungDec 3, 2007
  4. Wayne DavisonDec 3, 2007
  5. Johannes SchindelinDec 3, 2007
  6. Wayne DavisonDec 4, 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.