From: Ben Peart Date: Mon, 5 Nov 2018 19:27:51 +0000 (-0500) Subject: refresh_index: remove unnecessary calls to preload_index() X-Git-Tag: v2.20.0-rc0~36^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/6c5b7f55a845bccf7b3abda92a78c621898d838d?hp=6c5b7f55a845bccf7b3abda92a78c621898d838d refresh_index: remove unnecessary calls to preload_index() With refresh_index() learning to utilize preload_index() to speed up its operation there is no longer any benefit to having the caller preload the index first. Remove those unneeded calls by calling read_index() instead of the preload variant. There is no measurable performance impact of this patch - the 2nd call to preload_index() bails out quickly but there is no reason to call it twice. Signed-off-by: Ben Peart Signed-off-by: Junio C Hamano ---