Handle missing prefix for "Subject:" as if no prefix given
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Alex Riesen committed
Jul 4, 2007 at 12:33 UTC
88c447e8f467c6b2ca09ad91f3fa1d1d662dd04d
1 file changed
+1
-1
log-tree.c
+1
-1
@@ -200,7 +200,7 @@ void show_log(struct rev_info *opt, const char *sep)
200
digits_in_number(opt->total),
201
opt->nr, opt->total);
202
subject = buffer;
203
- } else if (opt->total == 0) {
203
+ } else if (opt->total == 0 && opt->subject_prefix && *opt->subject_prefix) {
204
static char buffer[256];
205
snprintf(buffer, sizeof(buffer),
206
"Subject: [%s] ",