aboutsummaryrefslogtreecommitdiffstats
path: root/entry.h
diff options
context:
space:
mode:
authorMatheus Tavares <matheus.bernardino@usp.br>2021-03-23 11:19:34 -0300
committerJunio C Hamano <gitster@pobox.com>2021-03-23 10:34:05 -0700
commit584a0d13f25d60694a1226cd274c33dba62bf9e4 (patch)
treec40df6cf2c9f4b2c4c099961eba6e78f5cbd1626 /entry.h
parent49cfd9032a5c1ef7401b79eff8db471b4c6ed7ef (diff)
downloadgit-584a0d13f25d60694a1226cd274c33dba62bf9e4.tar.gz
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 <matheus.bernardino@usp.br> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'entry.h')
-rw-r--r--entry.h2
1 files changed, 2 insertions, 0 deletions
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 */