Three dot notion used inconsitent?

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Three dot notion used inconsitent?

From: Lars Schneider <hidden>
Date: 2016-06-15 23:07:16

Hi,

I just stumbled across the this:

git diff branchA...branchB
--> gives me the diff between (the common ancestor of A and B) and B. That means I never see changes on branchA.

git log branchA...branchB
--> gives me the commits reachable from A and B. That includes changes from branchA.

Is this because of a design decision that I do not (yet) understand or is this inconsistent for historical reasons?

Thanks,
Lars

Re: Three dot notion used inconsitent?

From: Johannes Löthberg <hidden>
Date: 2016-06-15 23:07:16

On 18/11, Lars Schneider wrote:
git diff branchA...branchB
--> gives me the diff between (the common ancestor of A and B) and B. That means I never see changes on branchA.

git log branchA...branchB
--> gives me the commits reachable from A and B. That includes changes from branchA.

Is this because of a design decision that I do not (yet) understand or is this inconsistent for historical reasons?
The standard meaning of A...B is all the commits reachable from A or B, 
but not from both. (See gitrevisions(7) for more info.)

git-diff has its own nonstandard definition, where A...B is defined as 
all the commits from a comman ancestor of A and B, up to B.

-- 
Sincerely,
  Johannes Löthberg
  PGP Key ID: 0x50FB9B273A9D0BB5
  https://theos.kyriasis.com/~kyrias/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help