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

Function oid_array_append

oid-array.c:7–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5#include "hash-lookup.h"
6
7void oid_array_append(struct oid_array *array, const struct object_id *oid)
8{
9 ALLOC_GROW(array->oid, array->nr + 1, array->alloc);
10 oidcpy(&array->oid[array->nr++], oid);
11 if (!oid->algo)
12 oid_set_algo(&array->oid[array->nr - 1], the_hash_algo);
13 array->sorted = 0;
14}
15
16static int void_hashcmp(const void *va, const void *vb)
17{

Callers 15

receive_shallow_infoFunction · 0.85
update_shallowFunction · 0.85
transport_pushFunction · 0.85
process_refFunction · 0.85
process_shallowFunction · 0.85
append_oid_to_arrayFunction · 0.85
parse_opt_object_nameFunction · 0.85
add_packed_commits_oiFunction · 0.85
add_missing_parentsFunction · 0.85

Calls 2

oidcpyFunction · 0.85
oid_set_algoFunction · 0.85

Tested by

no test coverage detected