| 121 | } |
| 122 | |
| 123 | uint32_t nth_packed_mtime(struct packed_git *p, uint32_t pos) |
| 124 | { |
| 125 | if (!p->mtimes_map) |
| 126 | BUG("pack .mtimes file not loaded for %s", p->pack_name); |
| 127 | if (p->num_objects <= pos) |
| 128 | BUG("pack .mtimes out-of-bounds (%"PRIu32" vs %"PRIu32")", |
| 129 | pos, p->num_objects); |
| 130 | |
| 131 | return get_be32(p->mtimes_map + pos + 3); |
| 132 | } |