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

Function stats_table_size_addf

builtin/repo.c:397–409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

395}
396
397static void stats_table_size_addf(struct stats_table *table, size_t value,
398 const char *format, ...)
399{
400 struct stats_table_entry *entry;
401 va_list ap;
402
403 CALLOC_ARRAY(entry, 1);
404 humanise_bytes(value, &entry->value, &entry->unit, HUMANISE_COMPACT);
405
406 va_start(ap, format);
407 stats_table_vaddf(table, entry, format, ap);
408 va_end(ap);
409}
410
411static void stats_table_object_size_addf(struct stats_table *table,
412 struct object_id *oid, size_t value,

Callers 1

Calls 2

humanise_bytesFunction · 0.85
stats_table_vaddfFunction · 0.85

Tested by

no test coverage detected