diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2022-03-23 17:13:11 +0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-03-23 11:38:40 -0700 |
commit | 22184af2cb89f74b7245c77f1c3c10dae6098bcf (patch) | |
tree | 86e7c1a0eaa71939257e5bb92e2baea2d1d0acc2 /git-cvsserver.perl | |
parent | ls-tree: introduce struct "show_tree_data" (diff) | |
download | tgif-22184af2cb89f74b7245c77f1c3c10dae6098bcf.tar.xz |
cocci: allow padding with `strbuf_addf()`
A convenient way to pad strings is to use something like
`strbuf_addf(&buf, "%20s", "Hello, world!")`.
However, the Coccinelle rule that forbids a format `"%s"` with a
constant string argument cast too wide a net, and also forbade such
padding.
The original rule was introduced by commit:
28c23cd4c39 (strbuf.cocci: suggest strbuf_addbuf() to add one strbuf to an other, 2019-01-25)
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Teng Long <dyroneteng@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-cvsserver.perl')
0 files changed, 0 insertions, 0 deletions