| 507 | } |
| 508 | |
| 509 | static char *join_oid_array_hex(struct oid_array *array, char delim) |
| 510 | { |
| 511 | struct strbuf joined_hexs = STRBUF_INIT; |
| 512 | int i; |
| 513 | |
| 514 | for (i = 0; i < array->nr; i++) { |
| 515 | strbuf_add_oid_hex(&joined_hexs, array->oid + i); |
| 516 | if (i + 1 < array->nr) |
| 517 | strbuf_addch(&joined_hexs, delim); |
| 518 | } |
| 519 | |
| 520 | return strbuf_detach(&joined_hexs, NULL); |
| 521 | } |
| 522 | |
| 523 | /* |
| 524 | * In this function, passing a not NULL skipped_first is very special. |
no test coverage detected