Re: [PATCH 0/3] convert diff flags to be stored in a struct
- From
Stefan Beller <sbeller@google.com>
- Date
- Oct 29, 2017, 04:37 UTC
- Message-ID
- <CAGZ79kb+NLT8fGc-QJEtzgt3V8rj4=ciROoYJVFtMOyG+0OLwQ@mail.gmail.com>
- In-Reply-To
- <xmqq60aybvdp.fsf@gitster.mtv.corp.google.com>
On Sat, Oct 28, 2017 at 6:22 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 6 quoted lines
>> Some thoughts: >> * We may want to do a follow on patch to convert all the flags from being in >> uppercase to lower case. > > If and only if we do not use macros to set/clr/test, this makes a > lot of sense. Otherwise, probably not.
The .touched_flags is used just once in the code base for just one flag. I wonder if we could get rid of touched_flags and instead introduce a new flag (FORCE_TEXT_CONV instead of ALLOW_TEXT_CONV set by cmd_show specifically) that will enable the special casing that is currently done via the touched_flags.
Once we get rid of the special casing, we can get rid of the macros.