read-cache: refactor read_index_from()
commitde6ae5f9e3e0960e2adcba4688ed4293edc8424a
authorChristian Couder <christian.couder@gmail.com>
Mon, 6 Mar 2017 09:42:00 +0000 (6 10:42 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 6 Mar 2017 20:09:28 +0000 (6 12:09 -0800)
treef3b3f0a45100e1cf7525047f4a242d2efe7c82e1
parentc0441f7ef3e9e9a8ee7888e00472c6957bd90b2d
read-cache: refactor read_index_from()

It looks better and is simpler to review when we don't compute
the same things many times in the function.

It will also help make the following commit simpler.

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
read-cache.c