Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
sha1_file: allow map_sha1_file_1 to handle arbitrary repositories
[gitweb.git]
/
contrib
/
coccinelle
/
strbuf.cocci
diff --git
a/contrib/coccinelle/strbuf.cocci
b/contrib/coccinelle/strbuf.cocci
index 1d580e49b0ca3304ad7b3be62664df47ea84757d..6fe8727421101efc04c15d8c6def448984eff74d 100644
(file)
--- a/
contrib/coccinelle/strbuf.cocci
+++ b/
contrib/coccinelle/strbuf.cocci
@@
-29,8
+29,9
@@
cocci.include_match("%" not in fmt)
@@
expression E1, E2;
+format F =~ "s";
@@
-- strbuf_addf(E1, "%
s
", E2);
+- strbuf_addf(E1, "%
@F@
", E2);
+ strbuf_addstr(E1, E2);
@@