Re: [PATCH v2 04/21] read-cache: add and then use tweak_split_index()

2016-12-26 Thread Christian Couder
On Mon, Dec 19, 2016 at 12:18 PM, Duy Nguyen wrote: > On Sat, Dec 17, 2016 at 03:55:30PM +0100, Christian Couder wrote: >> +static void tweak_split_index(struct index_state *istate) >> +{ >> + switch (git_config_get_split_index()) { >> + case -1: /* unset: do nothing */ >> + br

Re: [PATCH v2 04/21] read-cache: add and then use tweak_split_index()

2016-12-19 Thread Duy Nguyen
On Sat, Dec 17, 2016 at 03:55:30PM +0100, Christian Couder wrote: > +static void tweak_split_index(struct index_state *istate) > +{ > + switch (git_config_get_split_index()) { > + case -1: /* unset: do nothing */ > + break; > + case 0: /* false */ > + remove_spli

[PATCH v2 04/21] read-cache: add and then use tweak_split_index()

2016-12-17 Thread Christian Couder
This will make us use the split-index feature or not depending on the value of the "core.splitIndex" config variable. Signed-off-by: Christian Couder --- read-cache.c | 17 + 1 file changed, 17 insertions(+) diff --git a/read-cache.c b/read-cache.c index db5d910642..79aae6bd20 1