revisions.txt: clarify the .. and ... syntax
authorRamkumar Ramachandra <artagnon@gmail.com>
Mon, 22 Apr 2013 05:30:26 +0000 (11:00 +0530)
committerJunio C Hamano <gitster@pobox.com>
Mon, 22 Apr 2013 06:10:09 +0000 (23:10 -0700)
In <rev1>..<rev2> and <rev1>...<rev2>, if either <rev1> or <rev2> is
omitted, it defaults to 'HEAD'. Add this detail to the document.

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/revisions.txt
index b0f72206a09ffe6a703d923756b86c4964c1ad88..242682af07f120ec50fb7a7a1bb85d63e26902ad 100644 (file)
@@ -239,11 +239,13 @@ To summarize:
 
 '<rev1>..<rev2>'::
        Include commits that are reachable from <rev2> but exclude
-       those that are reachable from <rev1>.
+       those that are reachable from <rev1>.  When either <rev1> or
+       <rev2> is omitted, it defaults to 'HEAD'.
 
 '<rev1>\...<rev2>'::
        Include commits that are reachable from either <rev1> or
-       <rev2> but exclude those that are reachable from both.
+       <rev2> but exclude those that are reachable from both.  When
+       either <rev1> or <rev2> is omitted, it defaults to 'HEAD'.
 
 '<rev>{caret}@', e.g. 'HEAD{caret}@'::
   A suffix '{caret}' followed by an at sign is the same as listing