MCPcopy Index your code
hub / github.com/git/git / append_separator

Function append_separator

builtin/notes.c:243–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243static void append_separator(struct strbuf *message)
244{
245 size_t sep_len = 0;
246
247 if (!separator)
248 return;
249 else if ((sep_len = strlen(separator)) && separator[sep_len - 1] == '\n')
250 strbuf_addstr(message, separator);
251 else
252 strbuf_addf(message, "%s%s", separator, "\n");
253}
254
255static void concat_messages(struct note_data *d)
256{

Callers 2

concat_messagesFunction · 0.85
append_editFunction · 0.85

Calls 2

strbuf_addstrFunction · 0.85
strbuf_addfFunction · 0.85

Tested by

no test coverage detected