aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/revisions.txt
diff options
context:
space:
mode:
authorRamkumar Ramachandra <artagnon@gmail.com>2013-04-22 11:00:26 +0530
committerJunio C Hamano <gitster@pobox.com>2013-04-21 23:10:09 -0700
commit3a4dc48623793aad5770f0360eca8eb83f943657 (patch)
tree5dec8b4dc8b42bc82a13134cee6e8380792616f3 /Documentation/revisions.txt
parentbe6f72245232c9b3ccc19d3d233cf16b09ce0bff (diff)
downloadgit-3a4dc48623793aad5770f0360eca8eb83f943657.tar.gz
revisions.txt: clarify the .. and ... syntax
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>
Diffstat (limited to 'Documentation/revisions.txt')
-rw-r--r--Documentation/revisions.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/Documentation/revisions.txt b/Documentation/revisions.txt
index b0f72206a0..242682af07 100644
--- a/Documentation/revisions.txt
+++ b/Documentation/revisions.txt
@@ -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