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

Function update_common

reftable/writer.c:597–607  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

595};
596
597static void update_common(void *void_arg, void *key)
598{
599 struct common_prefix_arg *arg = void_arg;
600 struct obj_index_tree_node *entry = key;
601 if (arg->last) {
602 size_t n = common_prefix_size(&entry->hash, arg->last);
603 if (n > arg->max)
604 arg->max = n;
605 }
606 arg->last = &entry->hash;
607}
608
609struct write_record_arg {
610 struct reftable_writer *w;

Callers

nothing calls this directly

Calls 1

common_prefix_sizeFunction · 0.85

Tested by

no test coverage detected