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

Function strbuf_addf_gently

worktree.c:347–358  ·  view source on GitHub ↗

convenient wrapper to deal with NULL strbuf */

Source from the content-addressed store, hash-verified

345
346/* convenient wrapper to deal with NULL strbuf */
347__attribute__((format (printf, 2, 3)))
348static void strbuf_addf_gently(struct strbuf *buf, const char *fmt, ...)
349{
350 va_list params;
351
352 if (!buf)
353 return;
354
355 va_start(params, fmt);
356 strbuf_vaddf(buf, fmt, params);
357 va_end(params);
358}
359
360int validate_worktree(const struct worktree *wt, struct strbuf *errmsg,
361 unsigned flags)

Callers 1

validate_worktreeFunction · 0.85

Calls 1

strbuf_vaddfFunction · 0.85

Tested by

no test coverage detected