Re: Diffing submodule does not yield complete logs for merge commits
- From
Junio C Hamano <gitster@pobox.com>
- Date
- May 4, 2015, 21:03 UTC
- Message-ID
- <xmqqegmwrr6k.fsf@gitster.dls.corp.google.com>
- In-Reply-To
- <CAHd499B=EcgYiTMFt9VYhj45bRkP8h9TBk1B0cr8fYFuXNe_mQ@mail.gmail.com>
Robert Dailey <rcdailey.lists@gmail.com> writes:
Show 6 quoted lines
> For #1, do you recommend adding a 3rd setting for `diff.submodule` > config? Something like "full-log" or something? Or an entirely new > config? I noticed that in diff.h, the DIFF_OPT flags already consume > 31 bits. If this is a 32-bit flag, there is only 1 bit left. If we go > with a 3rd setting for `diff.submodule` I think this might consume the > last bit.
Unless you are using opts->touched_flags infrastructure to do funky defaulting dance, there is really nothing that forces you to use a bit from the flag word for your new feature. diff_options have many standalone int fields that are used for either boolean or a small enum (e.g. degraded_cc_to_c) and it is perfectly fine to use a new such field.