# [PATCH] Documentation/revisions: Document shorthand

3 messages from 2011-06-28 to 2011-07-01. Participants: Johan Sageryd, Michael J Gruber.
Thread: https://gitlist.dev/t/27724

## Johan Sageryd, 2011-06-28 22:09

Subject: [PATCH] Documentation/revisions: Document shorthand
Message-ID: <1309298960-55011-1-git-send-email-j416@1616.se>
URL: https://gitlist.dev/e/1309298960-55011-1-git-send-email-j416%401616.se

```
Signed-off-by: Johan Sageryd <j416@1616.se>
---
 Documentation/revisions.txt |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Documentation/revisions.txt b/Documentation/revisions.txt
index b290b61..180ef5a 100644
--- a/Documentation/revisions.txt
+++ b/Documentation/revisions.txt
@@ -105,7 +105,7 @@ the '$GIT_DIR/refs' directory or from the '$GIT_DIR/packed-refs' file.
   commit object, following only the first parents.  I.e. '<rev>{tilde}3' is
   equivalent to '<rev>{caret}{caret}{caret}' which is equivalent to
   '<rev>{caret}1{caret}1{caret}1'.  See below for an illustration of
-  the usage of this form.
+  the usage of this form. '<rev>{tilde}' is a shorthand for '<rev>{tilde}1'.

 '<rev>{caret}\{<type>\}', e.g. 'v0.99.8{caret}\{commit\}'::
   A suffix '{caret}' followed by an object type name enclosed in
--
1.7.6


Sorry; please use this instead. Same patch with correct from-address.

Thank you,
Johan

```

## Michael J Gruber, 2011-06-30 07:30

Subject: Re: [PATCH] Documentation/revisions: Document shorthand
Message-ID: <4E0C2627.9040709@drmicha.warpmail.net>
URL: https://gitlist.dev/e/4E0C2627.9040709%40drmicha.warpmail.net
In-Reply-To: <1309298960-55011-1-git-send-email-j416@1616.se>

```
Johan Sageryd venit, vidit, dixit 29.06.2011 00:09:
> Signed-off-by: Johan Sageryd <j416@1616.se>
> ---
>  Documentation/revisions.txt |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/Documentation/revisions.txt b/Documentation/revisions.txt
> index b290b61..180ef5a 100644
> --- a/Documentation/revisions.txt
> +++ b/Documentation/revisions.txt
> @@ -105,7 +105,7 @@ the '$GIT_DIR/refs' directory or from the '$GIT_DIR/packed-refs' file.
>    commit object, following only the first parents.  I.e. '<rev>{tilde}3' is
>    equivalent to '<rev>{caret}{caret}{caret}' which is equivalent to
>    '<rev>{caret}1{caret}1{caret}1'.  See below for an illustration of
> -  the usage of this form.
> +  the usage of this form. '<rev>{tilde}' is a shorthand for '<rev>{tilde}1'.
> 
>  '<rev>{caret}\{<type>\}', e.g. 'v0.99.8{caret}\{commit\}'::
>    A suffix '{caret}' followed by an object type name enclosed in
> --
> 1.7.6
> 
> 
> Sorry; please use this instead. Same patch with correct from-address.

If rev~ is meant to be documented usage (I thought rev^ to be preferred
but may be wrong) then we should make the descriptions of rev~<n> and
rev^<n> more uniform.

Michael

```

## Johan Sageryd, 2011-07-01 23:01

Subject: Re: [PATCH] Documentation/revisions: Document shorthand
Message-ID: <4E0E51D2.9070407@1616.se>
URL: https://gitlist.dev/e/4E0E51D2.9070407%401616.se
In-Reply-To: <4E0C2627.9040709@drmicha.warpmail.net>

```
On 2011-06-30 09.30, Michael J Gruber wrote:
> If rev~ is meant to be documented usage (I thought rev^ to be preferred
> but may be wrong) then we should make the descriptions of rev~<n> and
> rev^<n> more uniform.


Hello Michael,

Yes, I thought about this too, there is indeed room for improvement.
However in that case we should also think about uniforming the
descriptions of for instance "<refname>@{<n>}", "@{<n>}", "@{-<n>}" in a
similar way.

The current descriptions are in themselves quite clear and I didn't feel
the need to spend much time rewriting it all. But I do believe that we
should strive to document all possible syntax, preferred or not, and
that is the reason for me suggesting this patch. The more complete the
better, optimising can be done at any time.

Johan

```
