mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
When we had to refresh the index internally before running diff or status, we opportunistically updated the $GIT_INDEX_FILE so that later invocation of git can use the lstat(2) we already did in this invocation. Make them share a helper function to do so. Signed-off-by: Junio C Hamano <gitster@pobox.com>
38 KiB
38 KiB