| 299 | } |
| 300 | |
| 301 | const char *fsck_get_object_name(struct fsck_options *options, |
| 302 | const struct object_id *oid) |
| 303 | { |
| 304 | khiter_t pos; |
| 305 | if (!options->object_names) |
| 306 | return NULL; |
| 307 | pos = kh_get_oid_map(options->object_names, *oid); |
| 308 | if (pos >= kh_end(options->object_names)) |
| 309 | return NULL; |
| 310 | return kh_value(options->object_names, pos); |
| 311 | } |
| 312 | |
| 313 | void fsck_put_object_name(struct fsck_options *options, |
| 314 | const struct object_id *oid, |
no outgoing calls
no test coverage detected