Re: [PATCH 02/10] git-fast-export.txt: clarify misleading documentation about rev-list args
- From
Elijah Newren <newren@gmail.com>
- Date
- Nov 13, 2018, 23:25 UTC
- Message-ID
- <CABPp-BFo=UvwbqV06R9PVEJ6JyEsvUCr4pe+3eQw8D2W96D96w@mail.gmail.com>
- In-Reply-To
- <CABPp-BHwg2U=b+UGK2SufB7uZPmmiPVKXoTpYt+LuHnLwmwuZQ@mail.gmail.com>
On Sat, Nov 10, 2018 at 11:17 PM Elijah Newren <newren@gmail.com> wrote:
Show 26 quoted lines
> > On Sat, Nov 10, 2018 at 10:36 PM Jeff King <peff@peff.net> wrote: > > > > On Sat, Nov 10, 2018 at 10:23:04PM -0800, Elijah Newren wrote: > > > > > Signed-off-by: Elijah Newren <newren@gmail.com> > > > --- > > > Documentation/git-fast-export.txt | 3 ++- > > > 1 file changed, 2 insertions(+), 1 deletion(-) > > > > > > diff --git a/Documentation/git-fast-export.txt b/Documentation/git-fast-export.txt > > > index ce954be532..677510b7f7 100644 > > > --- a/Documentation/git-fast-export.txt > > > +++ b/Documentation/git-fast-export.txt > > > @@ -119,7 +119,8 @@ marks the same across runs. > > > 'git rev-list', that specifies the specific objects and references > > > to export. For example, `master~10..master` causes the > > > current master reference to be exported along with all objects > > > - added since its 10th ancestor commit. > > > + added since its 10th ancestor commit and all files common to > > > + master\~9 and master~10. > > > > Do you need to backslash the second tilde? Maybe `master~9` and > > `master~10` instead of escaping? > > Oops, yeah, that needs to be consistent.
Actually, no, it actually needs to be inconsistent.
Different Input Choices (neither backslashed, both backslashed, then just one): master~9 and master~10 master\~9 and master\~10 master\~9 and master~10
What the outputs look like: master9 and master10 master~9 and master\~10 master~9 and master~10
I have no idea why asciidoc behaves this way, but it appears my backslash escaping of just one of the two was necessary.