summaryrefslogtreecommitdiff
path: root/submodule.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-10-30 20:18:31 -0700
committerJunio C Hamano <gitster@pobox.com>2009-10-30 20:18:31 -0700
commit5f809ff50921bee44bbf88c49056e7d145c0c35f (patch)
tree451ba24442900b54c90264056998effaf25cd4eb /submodule.c
parentd39d667169fda640065d48b70288c3342bd3195d (diff)
parentb7b10385a84c741a4fe219807c9511f69403640a (diff)
downloadgit-5f809ff50921bee44bbf88c49056e7d145c0c35f.tar.gz
fixup tr/stash-format merge
Diffstat (limited to 'submodule.c')
-rw-r--r--submodule.c5
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');