update-index: warn in case of split-index incoherency
commit6cc1053375d8e138b8f05dde4cd0d4ab8f92254a
authorChristian Couder <christian.couder@gmail.com>
Mon, 27 Feb 2017 18:00:03 +0000 (27 19:00 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 1 Mar 2017 21:24:21 +0000 (1 13:24 -0800)
tree02cd9b74744ae37fb425dae92992c3216f44b761
parent4392531211e48ead6bf2d27c58b208cd1e221eda
update-index: warn in case of split-index incoherency

When users are using `git update-index --(no-)split-index`, they
may expect the split-index feature to be used or not according to
the option they just used, but this might not be the case if the
new "core.splitIndex" config variable has been set. In this case
let's warn about what will happen and why.

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/update-index.c