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

Re: [PATCH 2/2] describe: Add documentation for "--abbrev=+"

From
Jeff King <peff@peff.net>
Date
Sep 14, 2014, 08:23 UTC
Message-ID
<20140914082302.GB20526@peff.net>
In-Reply-To
<1410532004-22769-3-git-send-email-jonh.wendell@gmail.com>
On Fri, Sep 12, 2014 at 11:26:44AM -0300, Jonh Wendell wrote:
Show 8 quoted lines
> --- a/Documentation/git-describe.txt
> +++ b/Documentation/git-describe.txt
> @@ -54,6 +54,12 @@ OPTIONS
>  	abbreviated object name, use <n> digits, or as many digits
>  	as needed to form a unique object name.  An <n> of 0
>  	will suppress long format, only showing the closest tag.
> +	+
> +	+

Why two continuation lines here? One seems to be enough on my version of asciidoc (though it would not be the first time we have encountered weird behaviors in our documentation toolchain).

> +	A special case of <n> equals to "\+" (without quotes) will print
> +	just a "+" sign instead of the whole suffix. This is useful if you
> +	only need to know if the supplied <commit-ish> points to an exact
> +	match or if there are commits between the tag found and the <commit-ish>.
I found this first phrase a little hard to parse. What about just:
  An <n> of `+` will print...

That uses the same wording as above, and I think using backticks is probably the right thing. It will appear in a monospaced font, which avoids the need to explain the quotes (and you also do not need to backslash-escape inside it).

-Peff
Previous: Jonh Wendell
Message 6 of 6 in “describe: support the syntax "--abbrev=+"”
  1. 0/2 describe: support the syntax "--abbrev=+"Jonh Wendell, Sep 12, 2014
  2. 1/2 describe: support the syntax "--abbrev=+"Jonh Wendell, Sep 12, 2014
  3. Jeff KingSep 14, 2014
  4. Eric SunshineSep 14, 2014
  5. 2/2 describe: Add documentation for "--abbrev=+"Jonh Wendell, Sep 12, 2014
  6. Jeff KingSep 14, 2014

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.