sequencer: use skip_blank_lines() to find the commit subject

Just like we already taught the find_commit_subject() function (to make it consistent with the code in pretty.c), we now simply skip leading blank lines of the commit message. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Johannes Schindelin committed Jun 29, 2016 at 16:14 UTC 88ef402f9c18dafee5c8b222200f8f984b17a73e
1 file changed +2 -4
sequencer.c
+2 -4
@@ -568,10 +568,8 @@ static int do_pick_commit(struct commit *commit, struct replay_opts *opts)
568 * information followed by "\n\n".
569 */
570 p = strstr(msg.message, "\n\n");
571 - if (p) {
572 - p += 2;
573 - strbuf_addstr(&msgbuf, p);
574 - }
571 + if (p)
572 + strbuf_addstr(&msgbuf, skip_blank_lines(p + 2));
573
574 if (opts->record_origin) {
575 if (!has_conforming_footer(&msgbuf, NULL, 0))