commit: use strbuf_add() to add a length-limited string
commit147ee35558a300a7e51af5335ef59b09fd57ab7c
authorRené Scharfe <l.s.r@web.de>
Sat, 7 Dec 2019 11:16:04 +0000 (7 12:16 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 9 Dec 2019 19:25:27 +0000 (9 11:25 -0800)
treea547d8ea1d50748344e587659375712488391433
parentb697d92f56511e804b8ba20ccbe7bdc85dc66810
commit: use strbuf_add() to add a length-limited string

This is shorter and simpler.

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/commit.c