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

Function test_show_object

pack-bitmap.c:2716–2730  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2714}
2715
2716static void test_show_object(struct object *object,
2717 const char *name UNUSED,
2718 void *data)
2719{
2720 struct bitmap_test_data *tdata = data;
2721 int bitmap_pos;
2722
2723 bitmap_pos = bitmap_position(tdata->bitmap_git, &object->oid);
2724 if (bitmap_pos < 0)
2725 die(_("object not in bitmap: '%s'"), oid_to_hex(&object->oid));
2726 test_bitmap_type(tdata, object, bitmap_pos);
2727
2728 bitmap_set(tdata->base, bitmap_pos);
2729 display_progress(tdata->prg, ++tdata->seen);
2730}
2731
2732static void test_show_commit(struct commit *commit, void *data)
2733{

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