Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
packfile: skip loading index if in multi-pack-index
[gitweb.git]
/
contrib
/
coccinelle
/
strbuf.cocci
diff --git
a/contrib/coccinelle/strbuf.cocci
b/contrib/coccinelle/strbuf.cocci
index ce2e92c6e95d90d490e958ddf820f44d1f51061e..e34eada1ad52933230c7fcace595677747f9e1d6 100644
(file)
--- a/
contrib/coccinelle/strbuf.cocci
+++ b/
contrib/coccinelle/strbuf.cocci
@@
-14,8
+14,9
@@
constant fmt !~ "%";
@@
expression E1, E2;
+format F =~ "s";
@@
-- strbuf_addf(E1, "%
s
", E2);
+- strbuf_addf(E1, "%
@F@
", E2);
+ strbuf_addstr(E1, E2);
@@