aboutsummaryrefslogtreecommitdiffstats
path: root/cache.h
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 /cache.h
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 'cache.h')
-rw-r--r--cache.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index 149022c82f..4148b6322d 100644
--- a/cache.h
+++ b/cache.h
@@ -889,6 +889,7 @@ void *read_blob_data_from_index(struct index_state *, const char *, unsigned lon
#define CE_MATCH_IGNORE_FSMONITOR 0X20
int is_racy_timestamp(const struct index_state *istate,
const struct cache_entry *ce);
+int has_racy_timestamp(struct index_state *istate);
int ie_match_stat(struct index_state *, const struct cache_entry *, struct stat *, unsigned int);
int ie_modified(struct index_state *, const struct cache_entry *, struct stat *, unsigned int);