threads / patch / 27724

patchDocumentation/revisions: Document shorthand

Subject: [PATCH] Documentation/revisions: Document shorthand

## tl;dr

3 messages between Jun 28, 2011 and Jul 1, 2011. Diffs are folded; open one to read it.

replies: 2people: 2as markdown or json

Johan Sageryd· Jun 28, 2011, 22:09 UTC · lore
Signed-off-by: Johan Sageryd <j416@1616.se>
---
 Documentation/revisions.txt |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Show changes to Documentation/revisions.txt +1 −2
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· Jun 30, 2011, 07:30 UTC · re: Johan Sageryd · lore

Re: [PATCH] Documentation/revisions: Document shorthand

Johan Sageryd venit, vidit, dixit 29.06.2011 00:09:
Show 23 quoted lines
> 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· Jul 1, 2011, 23:01 UTC · re: Michael J Gruber · lore

Re: [PATCH] Documentation/revisions: Document shorthand

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

← back to recent threads