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

Function test_show_commit

pack-bitmap.c:2732–2745  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2730}
2731
2732static void test_show_commit(struct commit *commit, void *data)
2733{
2734 struct bitmap_test_data *tdata = data;
2735 int bitmap_pos;
2736
2737 bitmap_pos = bitmap_position(tdata->bitmap_git,
2738 &commit->object.oid);
2739 if (bitmap_pos < 0)
2740 die(_("object not in bitmap: '%s'"), oid_to_hex(&commit->object.oid));
2741 test_bitmap_type(tdata, &commit->object, bitmap_pos);
2742
2743 bitmap_set(tdata->base, bitmap_pos);
2744 display_progress(tdata->prg, ++tdata->seen);
2745}
2746
2747static uint32_t bitmap_total_entry_count(struct bitmap_index *bitmap_git)
2748{

Callers

nothing calls this directly

Calls 6

bitmap_positionFunction · 0.85
oid_to_hexFunction · 0.85
test_bitmap_typeFunction · 0.85
bitmap_setFunction · 0.85
display_progressFunction · 0.85
dieFunction · 0.70

Tested by

no test coverage detected