[PATCH] Use "" instead of "<unknown>" for placeholders [was Re: [PATCH] Added a new placeholder '%cm' for full commit message]

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Johannes Schindelin wrote:

 I think it's no longer needed if instead of "<undefined>" only "" will
 be substituted.


 Here comes the big patch :)


From 2e4ba4e73bbcd19558039dd85fe45c7bbe7fd1c4 Mon Sep 17 00:00:00 2001
From: Michal Vitecek <fuf@mageo.cz>
Date: Fri, 21 Sep 2007 14:40:37 +0200
Subject: [PATCH] Use "" instead of "<unknown>" for placeholders

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

diff --git a/commit.c b/commit.c
index 99f65ce..7e90bc1 100644
--- a/commit.c
+++ b/commit.c
@@ -919,7 +919,7 @@ long format_commit_message(const struct commit *commit, const void *format,
 		table[IBODY].value = xstrdup(msg + i);
 	for (i = 0; i < ARRAY_SIZE(table); i++)
 		if (!table[i].value)
-			interp_set_entry(table, i, "<unknown>");
+			interp_set_entry(table, i, "");
 
 	do {
 		char *buf = *buf_p;
-- 
1.5.3.1

-- 
		fuf		(fuf@mageo.cz)
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] Added a new placeholder '%cm' for full commit me..., Johannes Schindelin, (Fri Sep 21, 6:47 am)
Re: [PATCH] Added a new placeholder '%cm' for full commit me..., Johannes Schindelin, (Fri Sep 21, 7:08 am)
[PATCH] Use "" instead of "<unknown>" for placeholders..., Michal Vitecek, (Fri Sep 21, 10:05 am)
Re: [PATCH] Use "" instead of "&lt;unknown&gt;" for placeholders, Johannes Schindelin, (Tue Sep 25, 6:25 am)
Re: [PATCH] Use "" instead of "&lt;unknown&gt;" for placeholders, Johannes Schindelin, (Tue Sep 25, 8:46 am)
Re: [PATCH] Use "" instead of "&lt;unknown&gt;" for placeholders, Johannes Schindelin, (Fri Sep 21, 4:41 pm)