MCPcopy Create free account
hub / github.com/git/git / join_oid_array_hex

Function join_oid_array_hex

bisect.c:509–521  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

507}
508
509static 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.

Callers 2

handle_bad_merge_baseFunction · 0.85

Calls 3

strbuf_add_oid_hexFunction · 0.85
strbuf_addchFunction · 0.85
strbuf_detachFunction · 0.85

Tested by

no test coverage detected