aboutsummaryrefslogtreecommitdiffstats
path: root/read-cache.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-02-05 09:42:32 -0800
committerJunio C Hamano <gitster@pobox.com>2022-02-05 09:42:32 -0800
commitee52b35e503fda30a269212823cc3dc67c907af7 (patch)
tree8315a85199bb84f087c4468917cbc2c1fbf9f49c /read-cache.c
parent1b4d9b4512ea5a4d76ac4af40e9a4ed4729403e3 (diff)
parent2ede073fd2287eb91af26484c2e7dafc15ecb7b7 (diff)
downloadgit-ee52b35e503fda30a269212823cc3dc67c907af7.tar.gz
Merge branch 'ms/update-index-racy'
"git update-index --refresh" has been taught to deal better with racy timestamps (just like "git status" already does). * ms/update-index-racy: update-index: refresh should rewrite index in case of racy timestamps t7508: add tests capturing racy timestamp handling t7508: fix bogus mtime verification test-lib: introduce API for verifying file mtime
Diffstat (limited to 'read-cache.c')
-rw-r--r--read-cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/read-cache.c b/read-cache.c
index cbe73f14e5..ed297635a3 100644
--- a/read-cache.c
+++ b/read-cache.c
@@ -2775,7 +2775,7 @@ static int repo_verify_index(struct repository *repo)
return verify_index_from(repo->index, repo->index_file);
}
-static int has_racy_timestamp(struct index_state *istate)
+int has_racy_timestamp(struct index_state *istate)
{
int entries = istate->cache_nr;
int i;