MCPcopy Index your code
hub / github.com/git/git / write_pack_header

Function write_pack_header

pack-write.c:364–373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

362}
363
364off_t write_pack_header(struct hashfile *f, uint32_t nr_entries)
365{
366 struct pack_header hdr;
367
368 hdr.hdr_signature = htonl(PACK_SIGNATURE);
369 hdr.hdr_version = htonl(PACK_VERSION);
370 hdr.hdr_entries = htonl(nr_entries);
371 hashwrite(f, &hdr, sizeof(hdr));
372 return sizeof(hdr);
373}
374
375/*
376 * Update pack header with object_count and compute new SHA1 for pack data

Callers 4

cmd__pack_deltasFunction · 0.85
start_packfileFunction · 0.85
write_pack_fileFunction · 0.85

Calls 1

hashwriteFunction · 0.85

Tested by 1

cmd__pack_deltasFunction · 0.68