From: Ben Peart Date: Fri, 22 Sep 2017 16:35:39 +0000 (-0400) Subject: update-index: add a new --force-write-index option X-Git-Tag: v2.18.0-rc0~112^2~2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/7c545be9a1afb8031ff4df618a1f89d0764191cd?hp=7c545be9a1afb8031ff4df618a1f89d0764191cd update-index: add a new --force-write-index option At times, it makes sense to avoid the cost of writing out the index when the only changes can easily be recomputed on demand. This causes problems when trying to write test cases to verify that state as they can't guarantee the state has been persisted to disk. Add a new option (--force-write-index) to update-index that will ensure the index is written out even if the cache_changed flag is not set. Signed-off-by: Ben Peart Signed-off-by: Junio C Hamano ---