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

Function hash_object_body

object-file.c:318–327  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

316}
317
318static void hash_object_body(const struct git_hash_algo *algo, struct git_hash_ctx *c,
319 const void *buf, unsigned long len,
320 struct object_id *oid,
321 char *hdr, int *hdrlen)
322{
323 algo->init_fn(c);
324 git_hash_update(c, hdr, *hdrlen);
325 git_hash_update(c, buf, len);
326 git_hash_final_oid(oid, c);
327}
328
329void write_object_file_prepare(const struct git_hash_algo *algo,
330 const void *buf, unsigned long len,

Callers 1

Calls 2

git_hash_updateFunction · 0.85
git_hash_final_oidFunction · 0.85

Tested by

no test coverage detected