• S
    shortlog: fix wrapping lines of wraplen · 5b597082
    Steffen Prohaska 提交于
    A recent commit [1] fixed a off-by-one wrapping error.  As a
    side-effect, the conditional in add_wrapped_shortlog_msg() to decide
    whether to append a newline needs to be removed.  The function
    should always append a newline, which was the case before the
    off-by-one fix, because strbuf_add_wrapped_text() never returns a
    value of wraplen; when it returns wraplen, the string does not end
    with a newline, so this caller needs to add one anyway.
    
    [1] 14e1a4e1 utf8: fix off-by-one
        wrapping of text
    Signed-off-by: NSteffen Prohaska <prohaska@zib.de>
    Signed-off-by: NJunio C Hamano <gitster@pobox.com>
    5b597082
t4201-shortlog.sh 4.6 KB