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

Function hashflush

csum-file.c:46–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46void hashflush(struct hashfile *f)
47{
48 unsigned offset = f->offset;
49
50 if (offset) {
51 if (!f->skip_hash)
52 git_hash_update(&f->ctx, f->buffer, offset);
53 flush(f, f->buffer, offset);
54 f->offset = 0;
55 }
56}
57
58void free_hashfile(struct hashfile *f)
59{

Callers 7

finalize_hashfileFunction · 0.85
hashwriteFunction · 0.85
hashfile_checkpointFunction · 0.85
flushMethod · 0.85
append_obj_to_packFunction · 0.85
gfi_unpack_entryFunction · 0.85

Calls 2

git_hash_updateFunction · 0.85
flushFunction · 0.70

Tested by

no test coverage detected