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

Re: [PATCH] git-stash: improve synopsis in help and manual page

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 16, 2008, 09:49 UTC
Message-ID
<7vljyxe1d9.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<1218857251-2971-1-git-send-email-s-beyer@gmx.net>
Stephan Beyer <s-beyer@gmx.net> writes:
>    btw, should the "create" command be used directly at all?
>    Then a line for this should perhaps be added.

It's pretty much for Porcelain writer's consumption, so I do not think it is worth adding it to command line help, even though it would be nice to describe it in the documentation.

Show 7 quoted lines
> +dashless=$(basename "$0" | sed -e 's/-/ /')
> +USAGE="list [<options>]
> +   or: $dashless (show | drop | pop ) [<stash>]
> +   or: $dashless [--index] apply [<stash>]
> +   or: $dashless branch <branchname> [<stash>]
> +   or: $dashless [--keep-index] [save [<message>]]
> +   or: $dashless clear"

These --index and --keep-index are subcommand options and come after them (i.e. apply/save).

Previous: Stephan Beyer
Message 2 of 2 in “git-stash: improve synopsis in help and manual page”
  1. git-stash: improve synopsis in help and manual pageStephan Beyer, Aug 16, 2008
  2. Junio C HamanoAug 16, 2008

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.