completion: fill COMPREPLY directly when completing refs
[git.git] / contrib / coccinelle / strbuf.cocci
blob63995f22ff29f717a360f300e626ddea91d59fa2
1 @ strbuf_addf_with_format_only @
2 expression E;
3 constant fmt;
4 @@
5   strbuf_addf(E,
7   fmt
9   _(fmt)
11   );
13 @ script:python @
14 fmt << strbuf_addf_with_format_only.fmt;
16 cocci.include_match("%" not in fmt)
18 @ extends strbuf_addf_with_format_only @
20 - strbuf_addf
21 + strbuf_addstr
22   (E,
24   fmt
26   _(fmt)
28   );
31 expression E1, E2;
33 - strbuf_addf(E1, "%s", E2);
34 + strbuf_addstr(E1, E2);
37 expression E1, E2, E3;
39 - strbuf_addstr(E1, find_unique_abbrev(E2, E3));
40 + strbuf_add_unique_abbrev(E1, E2, E3);