diff --git a/diff-tree.c b/diff-tree.c
index 3881c23ca37a86c41ec12b2d5c4713ab01cc9d82..6f8dc2024c289a92fe81014511a8377364340783 100644 (file)
--- a/diff-tree.c
+++ b/diff-tree.c
static const char *orderfile = NULL;
static const char *header = NULL;
static const char *header_prefix = "";
+static enum cmit_fmt commit_format = CMIT_FMT_RAW;
// What paths are we interested in?
static int nr_paths = 0;
offset = sprintf(this_header, "%s%s (from %s)\n", header_prefix, commit, parent);
if (verbose_header) {
- offset += pretty_print_commit(msg, len, this_header + offset, sizeof(this_header) - offset);
+ offset += pretty_print_commit(commit_format, msg, len, this_header + offset, sizeof(this_header) - offset);
this_header[offset++] = '\n';
this_header[offset++] = 0;
}