use strbuf_complete_line() for adding a newline if needed
commita0d4923ddfb65c91d2b84ca74eee09424f986a8b
authorRené Scharfe <l.s.r@web.de>
Fri, 12 Dec 2014 19:16:38 +0000 (12 20:16 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 12 Dec 2014 19:23:45 +0000 (12 11:23 -0800)
tree98b95c9d176819abff5b8d7bfe904265777f2ddd
parent7fa1365c54c28b3cd9375539f381b54061a1880d
use strbuf_complete_line() for adding a newline if needed

Call strbuf_complete_line() instead of open-coding it.  Also remove
surrounding comments indicating the intent to complete a line since
this information is already included in the function name.

Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fmt-merge-msg.c
notes-utils.c
trace.c