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

Function strbuf_add_separated_string_list

strbuf.c:207–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205}
206
207void strbuf_add_separated_string_list(struct strbuf *str,
208 const char *sep,
209 struct string_list *slist)
210{
211 struct string_list_item *item;
212 int sep_needed = 0;
213
214 for_each_string_list_item(item, slist) {
215 if (sep_needed)
216 strbuf_addstr(str, sep);
217 strbuf_addstr(str, item->string);
218 sep_needed = 1;
219 }
220}
221
222void strbuf_list_free(struct strbuf **sbs)
223{

Callers 3

add_gpgsig_to_commitFunction · 0.85

Calls 1

strbuf_addstrFunction · 0.85

Tested by

no test coverage detected