git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Alex Riesen" <raa.lkml@gmail.com>
To: "Adam Roben" <aroben@apple.com>
Cc: git@vger.kernel.org, "Junio C Hamano" <gitster@pobox.com>
Subject: [PATCH] Handle missing prefix for "Subject:" as if no prefix given
Date: Wed, 4 Jul 2007 12:41:04 +0200	[thread overview]
Message-ID: <81b0412b0707040341l62474c01iba64ba136bd29d95@mail.gmail.com> (raw)

[-- 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


                 reply	other threads:[~2007-07-04 10:41 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=81b0412b0707040341l62474c01iba64ba136bd29d95@mail.gmail.com \
    --to=raa.lkml@gmail.com \
    --cc=aroben@apple.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).