Re: [PATCH] revisions.txt: mention <rev>~ form
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Apr 22, 2019, 06:32 UTC
- Message-ID
- <xmqqv9z67doq.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <18c8ed70602271a28c93df922eb3da8fb7563e2e.1555913472.git.liu.denton@gmail.com>
Denton Liu <liu.denton@gmail.com> writes:
Show 6 quoted lines
> @@ -139,7 +139,9 @@ thing no matter the case.
> '<rev>{caret}0' means the commit itself and is used when '<rev>' is the
> object name of a tag object that refers to a commit object.
>
> -'<rev>{tilde}<n>', e.g. 'master{tilde}3'::
> +'<rev>{tilde}[<n>]', e.g. 'HEAD~, master{tilde}3'::Why doesn't this example say "HEAD{tilde}, master{tilde}3" instead, I wonder?
Show 5 quoted lines
> + A suffix '{tilde}' to a revision parameter means the first parent of
> + that commit object.
> A suffix '{tilde}<n>' to a revision parameter means the commit
> object that is the <n>th generation ancestor of the named
> commit object, following only the first parents. I.e. '<rev>{tilde}3' is