From 88ef402f9c18dafee5c8b222200f8f984b17a73e Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Wed, 29 Jun 2016 16:14:46 +0200 Subject: 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 Signed-off-by: Junio C Hamano diff --git a/sequencer.c b/sequencer.c index c4f4b7d..e286a6e 100644 --- a/sequencer.c +++ b/sequencer.c @@ -568,10 +568,8 @@ static int do_pick_commit(struct commit *commit, struct replay_opts *opts) * information followed by "\n\n". */ p = strstr(msg.message, "\n\n"); - if (p) { - p += 2; - strbuf_addstr(&msgbuf, p); - } + if (p) + strbuf_addstr(&msgbuf, skip_blank_lines(p + 2)); if (opts->record_origin) { if (!has_conforming_footer(&msgbuf, NULL, 0)) -- cgit v0.10.2-6-g49f6