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
Wayne Davison <wayne@opencoder.net>
Date
Dec 4, 2007, 15:28 UTC
Message-ID
<20071204152827.GB24201@blorf.net>
In-Reply-To
<Pine.LNX.4.64.0712031023480.27959@racer.site>
On Mon, Dec 03, 2007 at 10:25:17AM +0000, Johannes Schindelin wrote:
> But those are not really options, are they?  They are commands, which 
> exclude each other.

Option syntax is often used to represent exclusive commands, especially when those commands need to be distinguished from free-form arg words. The "git checkout" command is another example of this in git, and there are plenty of non-git examples of such a use of option syntax around. Such a syntax makes it easier to have a default action while still taking a free-form arg. I personally think that using option syntax for its behavior choices would be preferable with git stash.

..wayne..
Previous: Johannes Schindelin
Message 6 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.