Re: [PATCH 2/2] commit: use strbuf_add() to add a buffer to a strbuf

2017-10-01 Thread Jeff King
On Sun, Oct 01, 2017 at 04:54:14PM +0200, René Scharfe wrote: > This is shorter, easier and makes the intent clearer. > > Patch generated with Coccinelle and contrib/coccinelle/strbuf.cocci. Technically this behaves differently if there is a NUL embedded in the string. I'd expect that to be unli

[PATCH 2/2] commit: use strbuf_add() to add a buffer to a strbuf

2017-10-01 Thread René Scharfe
This is shorter, easier and makes the intent clearer. Patch generated with Coccinelle and contrib/coccinelle/strbuf.cocci. Signed-off-by: Rene Scharfe --- builtin/commit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/commit.c b/builtin/commit.c index 0f8ddb6866..d