Re: [PATCH] bring description of git diff --cc up to date
From: Junio C Hamano <hidden>
Date: 2016-06-15 22:44:59
Jonathan Nieder [off-list ref] writes:
+ This flag implies the '-c' option and makes the patch output + even more compact by omitting uninteresting hunks. A hunk is + considered interesting only if either (a) it shows changes from + all parents or (b) in an Octopus merge, it shows different changes + from at least three different parents.
I am not sure where that "at lesta three different parents" comes from.
It might be that what the logic does can be expressed that way, but that
was not the guiding principle why the code does what it currently does.
These two might make it clearer what hunks are considered interesting:
http://thread.gmane.org/gmane.comp.version-control.git/15098/focus=15109
http://thread.gmane.org/gmane.comp.version-control.git/15486/focus=15491
Especially the latter thread, not just the focused one but the whole
thing, is quite amusing.
This one gives an insight into the logical consequence of the hunk
selection criteria:
http://thread.gmane.org/gmane.comp.version-control.git/15486/focus=15600
it is worth a read after understanding why some hunks are omitted and some
hunks are included by reading other articles in the thread.