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

Function write_extended_header

archive-tar.c:240–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238}
239
240static void write_extended_header(struct archiver_args *args,
241 const struct object_id *oid,
242 const void *buffer, unsigned long size)
243{
244 struct ustar_header header;
245 unsigned int mode;
246 memset(&header, 0, sizeof(header));
247 *header.typeflag = TYPEFLAG_EXT_HEADER;
248 mode = 0100666;
249 xsnprintf(header.name, sizeof(header.name), "%s.paxheader", oid_to_hex(oid));
250 prepare_header(args, &header, mode, size);
251 write_blocked(&header, sizeof(header));
252 write_blocked(buffer, size);
253}
254
255static int write_tar_entry(struct archiver_args *args,
256 const struct object_id *oid,

Callers 1

write_tar_entryFunction · 0.85

Calls 4

xsnprintfFunction · 0.85
oid_to_hexFunction · 0.85
prepare_headerFunction · 0.85
write_blockedFunction · 0.85

Tested by

no test coverage detected