Re: [PATCH v1 12/19] Documentation/config: add splitIndex.maxPercentChange
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Nov 7, 2016, 09:38 UTC
- Message-ID
- <CACsJy8BZNfESmFv=V89Cq-b+aMJWLH=qhXHNE8inZZRjvXB33Q@mail.gmail.com>
- In-Reply-To
- <CAP8UFD1YL+RgdqbV0V1OnC=sJHJFc_an02Q9JeDNapW+u1CZcA@mail.gmail.com>
(sorry I got sick in the last few weeks and could not respond to this earlier)
On Mon, Nov 7, 2016 at 4:44 AM, Christian Couder <christian.couder@gmail.com> wrote:
Show 14 quoted lines
> Le 6 nov. 2016 09:16, "Junio C Hamano" <gitster@pobox.com> a écrit : >> >> Christian Couder <christian.couder@gmail.com> writes: >> >> > I think it is easier for user to be able to just set core.splitIndex >> > to true to enable split-index. >> >> You can have that exact benefit by making core.splitIndex to >> bool-or-more. If your default is 20%, take 'true' as if the user >> specified 20% and take 'false' as if the user specified 100% (or is >> it 0%? I do not care about the details but you get the point). > > Then if we ever add 'auto' and the user wants for example 10% instead of the > default 20%, we will have to make it accept things like "auto,10".
In my opinion, "true" _is_ auto, which is a way to say "I trust you to do the right thing, just re-split the index when it makes sense", "no" is disabled of course. If the user wants to be specific, just write "10" or some other percentage.(and either 0 or 100 would mean enable split-index but do not re-split automatically, let _me_ do it when I want it)
-- Duy