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

Re: [PATCH v2 2/2] rev-parse(1): logically group options

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 22, 2013, 22:30 UTC
Message-ID
<7vehaqb52o.fsf@alter.siamese.dyndns.org>
In-Reply-To
<d708e9253761472a1e675ce6fe46dc02686ad9a9.1374410829.git.john@keeping.me.uk>
John Keeping <john@keeping.me.uk> writes:
Show 34 quoted lines
> The options section of the git-rev-parse manual page has grown
> organically so that there now does not seem to be much logic behind the
> ordering of the options.  It also does not make it clear that certain
> options must appear first on the command line.
>
> Address this by reorganising the options into groups with subheadings.
> The text of option descriptions does not change.
>
> Signed-off-by: John Keeping <john@keeping.me.uk>
> ---
>  Documentation/git-rev-parse.txt | 104 ++++++++++++++++++++++++----------------
>  1 file changed, 64 insertions(+), 40 deletions(-)
>
> diff --git a/Documentation/git-rev-parse.txt b/Documentation/git-rev-parse.txt
> index 993903c..34c55a7 100644
> --- a/Documentation/git-rev-parse.txt
> +++ b/Documentation/git-rev-parse.txt
> @@ -24,9 +24,23 @@ distinguish between them.
>  
>  OPTIONS
>  -------
> +
> +Operation Modes
> +~~~~~~~~~~~~~~~
> +
> +Each of these options must appear first on the command line.
> +
>  --parseopt::
>  	Use 'git rev-parse' in option parsing mode (see PARSEOPT section below).
>  
> +--sq-quote::
> +	Use 'git rev-parse' in shell quoting mode (see SQ-QUOTE
> +	section below). In contrast to the `--sq` option below, this
> +	mode does only quoting. Nothing else is done to command input.
Much nicer ;-)
The rest also looked good to me.  Thanks.
Previous: John Keeping
Message 6 of 6 in “rev-parse(1): logically group options”
  1. rev-parse(1): logically group optionsJohn Keeping, Jul 18, 2013
  2. Junio C HamanoJul 19, 2013
  3. 0/2 Improvements to rev-parse option handlingJohn Keeping, Jul 21, 2013
  4. 1/2 rev-parse: remove restrictions on some optionsJohn Keeping, Jul 21, 2013
  5. 2/2 rev-parse(1): logically group optionsJohn Keeping, Jul 21, 2013
  6. Junio C HamanoJul 22, 2013

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.