Re: [PATCH v3 5/8] Fold all merge diff variants into an enum
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Sep 8, 2014, 17:36 UTC
- Message-ID
- <xmqqr3zmnhev.fsf@gitster.dls.corp.google.com>
- In-Reply-To
- <e95adf985efac162da72ac27220b904659dbb02d.1409860234.git.tr@thomasrast.ch>
Thomas Rast <tr@thomasrast.ch> writes:
Show 9 quoted lines
> The four ways of displaying merge diffs, > > * none: no diff > * -m: against each parent > * -c: combined > * --cc: combined-condensed > > were encoded in three flag bits in struct rev_info. Fold them all > into a single enum field that captures the variants.
Nice. It also has a good side effect to spell "condensed" out, instead of using a shorter "dense", and the end result matches what the command line option calls it ;-).