From 7260c37aa8c91c8008dcd2442a19c23d1c9040fb Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 20 May 2024 07:14:39 +0200 Subject: Merging upstream version 1:2.45.1. Signed-off-by: Daniel Baumann --- statinfo.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'statinfo.h') diff --git a/statinfo.h b/statinfo.h index 700f502..5b21a30 100644 --- a/statinfo.h +++ b/statinfo.h @@ -46,6 +46,14 @@ struct stat_validity { */ void fill_stat_data(struct stat_data *sd, struct stat *st); +/* + * The inverse of the above. When we know the cache_entry that + * contains sd is up-to-date, but still need to pretend we called + * lstat() to learn that fact, this function fills "st" enough to + * fool ie_match_stat(). + */ +void fake_lstat_data(const struct stat_data *sd, struct stat *st); + /* * Return 0 if st is consistent with a file not having been changed * since sd was filled. If there are differences, return a -- cgit v1.2.3