git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Handle missing prefix for "Subject:" as if no prefix given
@ 2007-07-04 10:41 Alex Riesen
  0 siblings, 0 replies; only message in thread
From: Alex Riesen @ 2007-07-04 10:41 UTC (permalink / raw)
  To: Adam Roben; +Cc: git, Junio C Hamano

[-- Attachment #1: Type: text/plain, Size: 124 bytes --]

Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
---
 log-tree.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

[-- Attachment #2: 0001-Handle-missing-prefix-for-Subject-as-if-no-prefix.txt --]
[-- Type: text/plain, Size: 791 bytes --]

From afd3d7d62607fcdd9866c22641c8623711ab6147 Mon Sep 17 00:00:00 2001
From: Alex Riesen <raa@limbo.localdomain>
Date: Wed, 4 Jul 2007 12:33:46 +0200
Subject: [PATCH] Handle missing prefix for "Subject:" as if no prefix given

---
 log-tree.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/log-tree.c b/log-tree.c
index ced3f33..8624d5a 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] ",
-- 
1.5.2.2.669.gad316


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2007-07-04 10:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-04 10:41 [PATCH] Handle missing prefix for "Subject:" as if no prefix given Alex Riesen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).