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
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/