[PATCH 1/2] add --simplify-combined-diff option

2014-07-29 Thread Jeff King
When showing a combined diff, we are comparing two (or more) parents to a final state, and some of these states may be the same. Here's a table of the possible contents for a given path (for two parents, but we will generalize to more in a moment; we also omit isomorphic cases where the parents

Re: [PATCH 1/2] add --simplify-combined-diff option

2014-07-29 Thread Jeff King
On Tue, Jul 29, 2014 at 08:00:56AM -0400, Jeff King wrote: The implementation just cuts the number of parents down to 1, but otherwise runs through the same combined-diff code. The resulting pairwise combined-diff differs from a normal diff in a few ways: 1. The header line is still diff