summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorRamkumar Ramachandra <artagnon@gmail.com>2013-04-22 05:30:26 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-04-22 06:10:09 (GMT)
commit3a4dc48623793aad5770f0360eca8eb83f943657 (patch)
tree5dec8b4dc8b42bc82a13134cee6e8380792616f3 /Documentation
parentbe6f72245232c9b3ccc19d3d233cf16b09ce0bff (diff)
downloadgit-3a4dc48623793aad5770f0360eca8eb83f943657.zip
git-3a4dc48623793aad5770f0360eca8eb83f943657.tar.gz
git-3a4dc48623793aad5770f0360eca8eb83f943657.tar.bz2
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')
-rw-r--r--Documentation/revisions.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/Documentation/revisions.txt b/Documentation/revisions.txt
index b0f7220..242682a 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