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

Function hash_object_file

object-file.c:474–482  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

472}
473
474void hash_object_file(const struct git_hash_algo *algo, const void *buf,
475 unsigned long len, enum object_type type,
476 struct object_id *oid)
477{
478 char hdr[MAX_HEADER_LEN];
479 int hdrlen = sizeof(hdr);
480
481 write_object_file_prepare(algo, buf, len, type, oid, hdr, &hdrlen);
482}
483
484struct transaction_packfile {
485 char *pack_tmp_name;

Callers 15

update_oneFunction · 0.85
verify_oneFunction · 0.85
check_object_signatureFunction · 0.85
index_memFunction · 0.85
index_pathFunction · 0.85
read_loose_objectFunction · 0.85
hash_filespecFunction · 0.85
add_patternsFunction · 0.85
show_one_mergetagFunction · 0.85
commit_tree_extendedFunction · 0.85
ident_to_worktreeFunction · 0.85

Calls 1

Tested by

no test coverage detected