From: Jeff King Date: Sun, 16 Apr 2017 04:32:12 GMT Subject: Re: [PATCH] doc/revisions: remove brackets from rev^-n shorthand Message-ID: <20170416043211.cctkxmjgijk3mtps@sigill.intra.peff.net> In-Reply-To: <20170416040757.32104-1-kyle@kyleam.com> On Sun, Apr 16, 2017 at 12:07:57AM -0400, Kyle Meyer wrote: > Given that other instances of "{...}" in the revision documentation > represent literal characters of revision specifications, describing > the rev^-n shorthand as "^-{}" incorrectly suggests that > something like "master^-{1}" is an acceptable form. I wondered at first if this was some weird asciidoc quoting thing. But no, the curly braces make it through to the rendered version. I agree they are confusing. > -The '{caret}-{}' notation includes '' but excludes the th > +The '{caret}-' notation includes '' but excludes the th > parent (i.e. a shorthand for '{caret}..'), with '' = 1 if This _could_ be: ^-[] to show that the parameter is optional. I think the extra punctuation in a situation like this just makes things harder to read, though. The text already mentions the default for and gives an example that omits it, so I think the paragraph is clear as-is (well, after your patch removes the confusing "{}"). -Peff