]> git.ipfire.org Git - thirdparty/git.git/blame - contrib/coccinelle/strbuf.cocci
Merge branch 'sg/travis-build-during-script-phase'
[thirdparty/git.git] / contrib / coccinelle / strbuf.cocci
CommitLineData
353d84c5
RS
1@ strbuf_addf_with_format_only @
2expression E;
ae239fc8 3constant fmt !~ "%";
353d84c5
RS
4@@
5- strbuf_addf
6+ strbuf_addstr
7 (E,
8(
9 fmt
10|
11 _(fmt)
12)
13 );
92d52fab
RS
14
15@@
16expression E1, E2;
cd9a4b6d 17format F =~ "s";
92d52fab 18@@
cd9a4b6d 19- strbuf_addf(E1, "%@F@", E2);
92d52fab 20+ strbuf_addstr(E1, E2);
f937d785
RS
21
22@@
23expression E1, E2, E3;
24@@
25- strbuf_addstr(E1, find_unique_abbrev(E2, E3));
26+ strbuf_add_unique_abbrev(E1, E2, E3);
33ad9ddd
RS
27
28@@
29expression E1, E2;
30@@
31- strbuf_addstr(E1, real_path(E2));
32+ strbuf_add_real_path(E1, E2);