diff --git a/builtin/rev-list.c b/builtin/rev-list.c
index 4be66998f6bcb998df094d0c434dfab6bbdcc8c7..56727e8c1d9d87fe3e3bf3919ba86d27d0735758 100644 (file)
--- a/builtin/rev-list.c
+++ b/builtin/rev-list.c
struct pretty_print_context ctx = {0};
ctx.abbrev = revs->abbrev;
ctx.date_mode = revs->date_mode;
- pretty_print_commit(revs->commit_format, commit, &buf, &ctx);
+ ctx.fmt = revs->commit_format;
+ pretty_print_commit(&ctx, commit, &buf);
if (revs->graph) {
if (buf.len) {
if (revs->commit_format != CMIT_FMT_ONELINE)