Re: A note on merging conflicts..
- From
Linus Torvalds <torvalds@osdl.org>
- Date
- Jul 1, 2006, 03:59 UTC
- Message-ID
- <Pine.LNX.4.64.0606302054580.12404@g5.osdl.org>
- In-Reply-To
- <Pine.LNX.4.64.0606302046230.12404@g5.osdl.org>
On Fri, 30 Jun 2006, Linus Torvalds wrote:
> > (it's not strictly a valid set operation, but it approaches being an > "xor" instead of a union or an intersection or a difference).
Oh, I guess it _is_ perfectly valid. It's called a "symmetric difference" in set theory.
So from a set standpoint:
Git op: Set theory:
git-rev-list a..b // difference: B - A git-rev-list b..a // difference: A - B
git-rev-list a b // union of A B (order doesn't matter)
git-rev-list a...b // symmetric difference A B (order doesn't matter)
git-rev-list $(git-merge-base --all a b) // intersection of A and B
I think.
Linus