I wouldn't read so, to be honest. This isn't so convoluted:

https://git-scm.com/docs/git-diff

Quote:

git diff [--options] <commit> <commit> [--] [<path>…]
This is to view the changes between two arbitrary <commit>.

git diff [--options] <commit>..<commit> [--] [<path>…]
This is synonymous to the previous form.

I use it all the time (never used the triple dot notation, to be
honest). It is what you expect it to be -- it's essentially a diff of
changes between two commits (as if you checked them out into two
folders and ran a recursive diff on both).

Dawid

On Thu, Mar 3, 2016 at 6:58 PM, Steve Rowe <[email protected]> wrote:
> Nearly all of my git knowledge is from possibly wrongheaded stack overflow 
> posts - in this case 
> <http://stackoverflow.com/questions/9834689/comparing-two-branches-in-git> 
> where chaiyachaiya said "git diff b1..b2, show you what is in b2 that is not 
> in b1. So git diff b1..b2 and git diff b2..b1 will not have the same output.”
>
> Re-reading that comment I see I missed the next sentence: "On the contrary, 
> git b1...b2, show you what is in b1 XOR b2 (either b1 or b2 but not both). So 
> git b1...b2 is equal to git b2...b1"
>
> Shoulda used the triple-dot syntax instead of the double-dot syntax.  Git, I 
> love you.
>
> --
> Steve
> www.lucidworks.com
>
>> On Mar 3, 2016, at 12:49 PM, Dawid Weiss <[email protected]> wrote:
>>
>>> (with minor solr/CHANGES.txt fixups) and then diffing both directions:
>>>
>>> git diff branch_6_0..branch_6x
>>> git diff branch_6x..branch_6_0
>>
>> Wait, can it ever be assymetric? I'd say it's impossible -- it should
>> always be a "reverse" diff of the another?
>>
>> Dawid
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to