From: Alex Riesen Date: Wed, 4 Jul 2007 10:33:46 +0000 (+0200) Subject: Handle missing prefix for "Subject:" as if no prefix given X-Git-Tag: v1.5.3-rc1~90 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=88c447e8f467c6b2ca09ad91f3fa1d1d662dd04d;p=git.git Handle missing prefix for "Subject:" as if no prefix given Signed-off-by: Junio C Hamano --- diff --git a/log-tree.c b/log-tree.c index ced3f332e..8624d5a39 100644 --- a/log-tree.c +++ b/log-tree.c @@ -200,7 +200,7 @@ void show_log(struct rev_info *opt, const char *sep) digits_in_number(opt->total), opt->nr, opt->total); subject = buffer; - } else if (opt->total == 0) { + } else if (opt->total == 0 && opt->subject_prefix && *opt->subject_prefix) { static char buffer[256]; snprintf(buffer, sizeof(buffer), "Subject: [%s] ",