Thread (2 messages) 2 messages, 2 authors, 2016-06-27

Re: name for A..B ranges?

From: Junio C Hamano <hidden>
Date: 2016-06-25 19:49:24

"Philip Oakley" [off-list ref] writes:
quoted
Yup, I think "range" is the commonly used word in discussions here.
When inventing A...B as a new thing in addition to A..B, we called
the former "symmetric difference", and what is implied by that is
the latter is "asymmetric difference"; we do not say that unless we
are contrasting between the two, though.
I asked because the man page does indicae that it (A..B) is a special
sort of revison range and "there is a shorthand for it", but then
didn't have a way of naming it.
I do not see "is a special sort of revision range" improved in your
two patches, though.

Knowing that A..B is merely a short-hand for ^A B is important to
understand how revision ranges work (e.g. "A..B C" is not "union of
A..B and C"), so I think it is worth addressing if the existing
description appeared to you that it may confuse readers.
The symmetric difference is then brought in as a further similar
notation. There are a number of Stackoverflow questions about the
differences betwee 'two dots' and 'three dots' as well, so having a
word/phrase for it could help.

I was thinking that maybe "single-sided difference (two dots)" maybe
one choice that is relatively neutral (or even a "two-dot range"...).
When contrasting .. and ..., we have always used "asymmetric" vs
"symmetric".  I'd prefer to see usnot invent new phrase nobody has
used, which leads to unnecessary confusion and learning burden.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help