diff options
| author | Matheus Tavares <matheus.bernardino@usp.br> | 2021-03-23 11:19:34 -0300 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2021-03-23 10:34:05 -0700 |
| commit | 584a0d13f25d60694a1226cd274c33dba62bf9e4 (patch) | |
| tree | c40df6cf2c9f4b2c4c099961eba6e78f5cbd1626 /entry.h | |
| parent | entry: make fstat_output() and read_blob_entry() public (diff) | |
| download | git-584a0d13f25d60694a1226cd274c33dba62bf9e4.tar.gz git-584a0d13f25d60694a1226cd274c33dba62bf9e4.zip | |
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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 */ |
