diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-10-30 20:18:31 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-10-30 20:18:31 -0700 |
commit | 5f809ff50921bee44bbf88c49056e7d145c0c35f (patch) | |
tree | 451ba24442900b54c90264056998effaf25cd4eb /submodule.c | |
parent | d39d667169fda640065d48b70288c3342bd3195d (diff) | |
parent | b7b10385a84c741a4fe219807c9511f69403640a (diff) | |
download | git-5f809ff50921bee44bbf88c49056e7d145c0c35f.tar.gz |
fixup tr/stash-format merge
Diffstat (limited to 'submodule.c')
-rw-r--r-- | submodule.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/submodule.c b/submodule.c index d5fce7a882..461faf0e00 100644 --- a/submodule.c +++ b/submodule.c @@ -92,6 +92,8 @@ void show_submodule_summary(FILE *f, const char *path, if (!message) { while ((commit = get_revision(&rev))) { + struct pretty_print_context ctx = {0}; + ctx.date_mode = rev.date_mode; strbuf_setlen(&sb, 0); if (commit->object.flags & SYMMETRIC_LEFT) { if (del) @@ -99,8 +101,7 @@ void show_submodule_summary(FILE *f, const char *path, } else if (add) strbuf_addstr(&sb, add); - format_commit_message(commit, format, &sb, - rev.date_mode); + format_commit_message(commit, format, &sb, &ctx); if (reset) strbuf_addstr(&sb, reset); strbuf_addch(&sb, '\n'); |