From 584a0d13f25d60694a1226cd274c33dba62bf9e4 Mon Sep 17 00:00:00 2001 From: Matheus Tavares Date: Tue, 23 Mar 2021 11:19:34 -0300 Subject: entry: extract update_ce_after_write() from write_entry() The code that updates the in-memory index information after an entry is written currently resides in write_entry(). Extract it to a public function so that it can be called by the parallel checkout functions, outside entry.c, in a later patch. Signed-off-by: Matheus Tavares Signed-off-by: Junio C Hamano --- entry.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'entry.h') diff --git a/entry.h b/entry.h index 60df93ca78..ea7290bcd5 100644 --- a/entry.h +++ b/entry.h @@ -41,5 +41,7 @@ void unlink_entry(const struct cache_entry *ce); void *read_blob_entry(const struct cache_entry *ce, unsigned long *size); int fstat_checkout_output(int fd, const struct checkout *state, struct stat *st); +void update_ce_after_write(const struct checkout *state, struct cache_entry *ce, + struct stat *st); #endif /* ENTRY_H */ -- cgit v1.2.3