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

Function format_object_header

object-file.c:90–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90int format_object_header(char *str, size_t size, enum object_type type,
91 size_t objsize)
92{
93 const char *name = type_name(type);
94
95 if (!name)
96 BUG("could not get a type name for 'enum object_type' value %d", type);
97
98 return xsnprintf(str, size, "%s %"PRIuMAX, name, (uintmax_t)objsize) + 1;
99}
100
101int check_object_signature(struct repository *r, const struct object_id *oid,
102 void *buf, unsigned long size,

Callers 11

stream_object_signatureFunction · 0.85
force_object_looseFunction · 0.85
hash_blob_streamFunction · 0.85
start_putFunction · 0.85
write_pack_objectFunction · 0.85
unpack_entry_dataFunction · 0.85
store_objectFunction · 0.85
stream_blobFunction · 0.85

Calls 2

type_nameFunction · 0.85
xsnprintfFunction · 0.85

Tested by 1

write_pack_objectFunction · 0.68