Re: [PATCH 7/8] config: add core.untrackedCache
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Dec 22, 2015, 16:33 UTC
- Message-ID
- <xmqqh9jae94o.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <CACsJy8AF-7ULixapHmTtCia9x0HTtJ1nmnAER9A3BeLVjQM_Mg@mail.gmail.com>
Duy Nguyen <pclouds@gmail.com> writes:
Show 6 quoted lines
> In that case we can just check config once in read_index_from and > destroy UNTR extension. Or the middle ground, we check config once in > that place, make a note in struct index_state, and make invalidate_* > check that note instead of config file. The middle ground has an > advantage over destroying UNTR: (probably) many operations will touch > index but do not add or remove entries.
Or we can even teach read_index_from() to skip reading the extension without even parsing when the configuration tells it that the feature is force-disabled. It can also add an empty one when the configuration tells it that the feature is force-enabled and there is no UNTR extension yet.