mirror of
https://github.com/git/git
synced 2024-08-28 03:59:25 +00:00
92d52fab3a
Replace uses of strbuf_addf() for adding strings with more lightweight
strbuf_addstr() calls. This is shorter and makes the intent clearer.
bc57b9c0cc
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>
12 lines
153 B
Plaintext
12 lines
153 B
Plaintext
@@
|
|
expression E1, E2;
|
|
@@
|
|
- strbuf_addf(E1, E2);
|
|
+ strbuf_addstr(E1, E2);
|
|
|
|
@@
|
|
expression E1, E2;
|
|
@@
|
|
- strbuf_addf(E1, "%s", E2);
|
|
+ strbuf_addstr(E1, E2);
|