use strbuf_addstr() instead of strbuf_addf() with "%s", part 2
commit92d52fab3af8b1d5231285ac13b364f008d1a886
authorRené Scharfe <l.s.r@web.de>
Tue, 27 Sep 2016 19:08:21 +0000 (27 21:08 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 27 Sep 2016 21:02:40 +0000 (27 14:02 -0700)
treed7f4350b084aee1109cb4fe328b2892a16026e34
parent7f2817daef616e764afaaf302f85beb7a13e56dc
use strbuf_addstr() instead of strbuf_addf() with "%s", part 2

Replace uses of strbuf_addf() for adding strings with more lightweight
strbuf_addstr() calls.  This is shorter and makes the intent clearer.

bc57b9c0cc5a123365a922fa1831177e3fd607ed already converted three cases,
this patch covers two 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/submodule--helper.c
contrib/coccinelle/strbuf.cocci
submodule.c