| 1008 | } |
| 1009 | |
| 1010 | int repack_write_midx(struct repack_write_midx_opts *opts) |
| 1011 | { |
| 1012 | switch (opts->mode) { |
| 1013 | case REPACK_WRITE_MIDX_NONE: |
| 1014 | BUG("write_midx mode is NONE?"); |
| 1015 | case REPACK_WRITE_MIDX_DEFAULT: |
| 1016 | return write_midx_included_packs(opts); |
| 1017 | case REPACK_WRITE_MIDX_INCREMENTAL: |
| 1018 | return write_midx_incremental(opts); |
| 1019 | default: |
| 1020 | BUG("unhandled write_midx mode: %d", opts->mode); |
| 1021 | } |
| 1022 | } |
no test coverage detected