aboutsummaryrefslogtreecommitdiff
path: root/log-tree.c
diff options
context:
space:
mode:
authorAlex Riesen <raa@limbo.localdomain>2007-07-04 12:33:46 +0200
committerJunio C Hamano <gitster@pobox.com>2007-07-04 12:39:43 -0700
commit88c447e8f467c6b2ca09ad91f3fa1d1d662dd04d (patch)
tree66995f4d421071a7fff06c2e32c610aec6867393 /log-tree.c
parente754e9901a7f0912506c12977a916feddcd1b786 (diff)
downloadgit-88c447e8f467c6b2ca09ad91f3fa1d1d662dd04d.tar.gz
git-88c447e8f467c6b2ca09ad91f3fa1d1d662dd04d.tar.xz
Handle missing prefix for "Subject:" as if no prefix given
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'log-tree.c')
-rw-r--r--log-tree.c2
1 files changed, 1 insertions, 1 deletions
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] ",