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

Function concat_messages

builtin/notes.c:255–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253}
254
255static void concat_messages(struct note_data *d)
256{
257 struct strbuf msg = STRBUF_INIT;
258 size_t i;
259
260 for (i = 0; i < d->msg_nr ; i++) {
261 if (d->buf.len)
262 append_separator(&d->buf);
263 strbuf_add(&msg, d->messages[i]->buf.buf, d->messages[i]->buf.len);
264 strbuf_addbuf(&d->buf, &msg);
265 if ((d->stripspace == UNSPECIFIED &&
266 d->messages[i]->stripspace == STRIPSPACE) ||
267 d->stripspace == STRIPSPACE)
268 strbuf_stripspace(&d->buf, NULL);
269 strbuf_reset(&msg);
270 }
271 strbuf_release(&msg);
272}
273
274static int parse_msg_arg(const struct option *opt, const char *arg, int unset)
275{

Callers 2

addFunction · 0.85
append_editFunction · 0.85

Calls 5

append_separatorFunction · 0.85
strbuf_addFunction · 0.85
strbuf_addbufFunction · 0.85
strbuf_stripspaceFunction · 0.85
strbuf_releaseFunction · 0.85

Tested by

no test coverage detected