From: Junio C Hamano Date: Thu, 05 Dec 2013 23:10:03 GMT Subject: Re: [PATCH v4] commit -v: strip diffs and submodule shortlogs from the commit message Message-ID: In-Reply-To: <52A0D78E.4030509@web.de> Jens Lehmann writes: > + fprintf(s->fp, "%c %s", comment_line_char, cut_line); > + strbuf_add_commented_lines(&buf, explanation, strlen(explanation)); > + fprintf(s->fp, buf.buf); This is better done with: fputs(buf.buf, s->fp); Already locally tweaked while applying, so no need to resend only for this change.