]> git.ipfire.org Git - thirdparty/git.git/commit - remote.c
use strbuf_addstr() for adding constant strings to a strbuf, part 2
authorRené Scharfe <l.s.r@web.de>
Thu, 15 Sep 2016 18:31:00 +0000 (20:31 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 15 Sep 2016 19:23:38 +0000 (12:23 -0700)
commita22ae753cb297cb8a1e3ae950ae4415190cd51d5
treefca5ed773d854629968db249065e162d9ad61682
parent63f0a758a06f9af81717683185016275cb201190
use strbuf_addstr() for adding constant strings to a strbuf, part 2

Replace uses of strbuf_addf() for adding strings with more lightweight
strbuf_addstr() calls.  This makes the intent clearer and avoids
potential issues with printf format specifiers.

02962d36845b89145cd69f8bc65e015d78ae3434 already converted six cases,
this patch covers eleven more.

A semantic patch for Coccinelle is included for easier checking for
new cases that might be introduced in the future.

Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fmt-merge-msg.c
builtin/merge.c
builtin/submodule--helper.c
contrib/coccinelle/strbuf.cocci [new file with mode: 0644]
merge-recursive.c
remote.c
wt-status.c