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

Function strbuf_commented_addf

strbuf.c:399–415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

397}
398
399void strbuf_commented_addf(struct strbuf *sb, const char *comment_prefix,
400 const char *fmt, ...)
401{
402 va_list params;
403 struct strbuf buf = STRBUF_INIT;
404 int incomplete_line = sb->len && sb->buf[sb->len - 1] != '\n';
405
406 va_start(params, fmt);
407 strbuf_vaddf(&buf, fmt, params);
408 va_end(params);
409
410 strbuf_add_commented_lines(sb, buf.buf, buf.len, comment_prefix);
411 if (incomplete_line)
412 sb->buf[--sb->len] = '\0';
413
414 strbuf_release(&buf);
415}
416
417void strbuf_vaddf(struct strbuf *sb, const char *fmt, va_list ap)
418{

Callers 10

append_todo_helpFunction · 0.85
append_conflicts_hintFunction · 0.85
add_decorations_to_listFunction · 0.85
edit_hunk_manuallyFunction · 0.85
create_tagFunction · 0.85
prepare_to_commitFunction · 0.85
edit_branch_descriptionFunction · 0.85
fill_commit_messageFunction · 0.85

Calls 3

strbuf_vaddfFunction · 0.85
strbuf_releaseFunction · 0.85

Tested by

no test coverage detected