MCPcopy Create free account
hub / github.com/git/git / hashfile_checkpoint

Function hashfile_checkpoint

csum-file.c:207–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205}
206
207void hashfile_checkpoint(struct hashfile *f, struct hashfile_checkpoint *checkpoint)
208{
209 hashflush(f);
210 checkpoint->offset = f->total;
211 git_hash_clone(&checkpoint->ctx, &f->ctx);
212}
213
214int hashfile_truncate(struct hashfile *f, struct hashfile_checkpoint *checkpoint)
215{

Callers

nothing calls this directly

Calls 2

hashflushFunction · 0.85
git_hash_cloneFunction · 0.85

Tested by

no test coverage detected