Skip to content

Commit 3a4dc48

Browse files
artagnongitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent be6f722 commit 3a4dc48

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Documentation/revisions.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,11 +239,13 @@ To summarize:
239239

240240
'<rev1>..<rev2>'::
241241
Include commits that are reachable from <rev2> but exclude
242-
those that are reachable from <rev1>.
242+
those that are reachable from <rev1>. When either <rev1> or
243+
<rev2> is omitted, it defaults to 'HEAD'.
243244

244245
'<rev1>\...<rev2>'::
245246
Include commits that are reachable from either <rev1> or
246-
<rev2> but exclude those that are reachable from both.
247+
<rev2> but exclude those that are reachable from both. When
248+
either <rev1> or <rev2> is omitted, it defaults to 'HEAD'.
247249

248250
'<rev>{caret}@', e.g. 'HEAD{caret}@'::
249251
A suffix '{caret}' followed by an at sign is the same as listing

0 commit comments

Comments
 (0)