git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Add `format.to` configuration variable.
@ 2010-01-13  7:55 Steven Drake
  2010-01-13  8:20 ` Johannes Sixt
  0 siblings, 1 reply; 2+ messages in thread
From: Steven Drake @ 2010-01-13  7:55 UTC (permalink / raw)
  To: git

Signed-off-by: Steven Drake <sdrake@xnet.co.nz>
---
This email was address using this new configuration variable.
---
 builtin-log.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/builtin-log.c b/builtin-log.c
index 41b6df4..a608c3d 100644
--- a/builtin-log.c
+++ b/builtin-log.c
@@ -501,6 +501,13 @@ static int git_format_config(const char *var, const char *value, void *cb)
 	}
 	if (!strcmp(var, "format.suffix"))
 		return git_config_string(&fmt_patch_suffix, var, value);
+	if (!strcmp(var, "format.to")) {
+		if (!value)
+			return config_error_nonbool(var);
+		ALLOC_GROW(extra_to, extra_to_nr + 1, extra_to_alloc);
+		extra_to[extra_to_nr++] = xstrdup(value);
+		return 0;
+	}
 	if (!strcmp(var, "format.cc")) {
 		if (!value)
 			return config_error_nonbool(var);
-- 
1.6.6.85.ga4c31

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-01-13  8:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-13  7:55 [PATCH] Add `format.to` configuration variable Steven Drake
2010-01-13  8:20 ` Johannes Sixt

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).