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).