Re: [PATCH v4] commit -v: strip diffs and submodule shortlogs from the commit message
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Dec 5, 2013, 23:10 UTC
- Message-ID
- <xmqqzjoe3nec.fsf@gitster.dls.corp.google.com>
- In-Reply-To
- <52A0D78E.4030509@web.de>
Jens Lehmann <Jens.Lehmann@web.de> 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.