X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin%2Fmerge.c;h=325891edb610945d01899b102993202af279bf3f;hb=2c6b5d88287689e5a1acd5b5fefb8edd96931b6d;hp=5a2a1eb797c88990337f0b9cbb5dcabc73222a22;hpb=1c9d71944a7a35cdfeb09200b20e261737cdc0b9;p=git.git diff --git a/builtin/merge.c b/builtin/merge.c index 5a2a1eb79..325891edb 100644 --- a/builtin/merge.c +++ b/builtin/merge.c @@ -339,13 +339,14 @@ static void squash_message(void) ctx.abbrev = rev.abbrev; ctx.date_mode = rev.date_mode; + ctx.fmt = rev.commit_format; strbuf_addstr(&out, "Squashed commit of the following:\n"); while ((commit = get_revision(&rev)) != NULL) { strbuf_addch(&out, '\n'); strbuf_addf(&out, "commit %s\n", sha1_to_hex(commit->object.sha1)); - pretty_print_commit(rev.commit_format, commit, &out, &ctx); + pretty_print_commit(&ctx, commit, &out); } if (write(fd, out.buf, out.len) < 0) die_errno(_("Writing SQUASH_MSG"));