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

Function index_commit_for_bitmap

builtin/pack-objects.c:344–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

342static unsigned int indexed_commits_alloc;
343
344static void index_commit_for_bitmap(struct commit *commit)
345{
346 if (indexed_commits_nr >= indexed_commits_alloc) {
347 indexed_commits_alloc = (indexed_commits_alloc + 32) * 2;
348 REALLOC_ARRAY(indexed_commits, indexed_commits_alloc);
349 }
350
351 indexed_commits[indexed_commits_nr++] = commit;
352}
353
354static void *get_delta(struct object_entry *entry)
355{

Callers 1

show_commitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected