aboutsummaryrefslogtreecommitdiff
path: root/builtin-log.c
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@frugalware.org>2008-04-26 23:19:06 +0200
committerJunio C Hamano <gitster@pobox.com>2008-04-29 19:56:25 -0700
commitfe8928e6e802f8519e133f085783fb664f1a0d6b (patch)
treea2c575c97b89ad945182eb9ce048bb54c4fd029f /builtin-log.c
parentf0ec47b8e7f46e17e6b6fe1cead728fa24477e43 (diff)
downloadgit-fe8928e6e802f8519e133f085783fb664f1a0d6b.tar.gz
git-fe8928e6e802f8519e133f085783fb664f1a0d6b.tar.xz
git-format-patch: add a new format.cc configuration variable
Some projects prefer to always CC patches to a given mailing list. In these cases, it's handy to configure that address once. Signed-off-by: Miklos Vajna <vmiklos@frugalware.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-log.c')
-rw-r--r--builtin-log.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/builtin-log.c b/builtin-log.c
index 1670d0b33..d7907c942 100644
--- a/builtin-log.c
+++ b/builtin-log.c
@@ -485,6 +485,13 @@ static int git_format_config(const char *var, const char *value)
fmt_patch_suffix = xstrdup(value);
return 0;
}
+ if (!strcmp(var, "format.cc")) {
+ if (!value)
+ return config_error_nonbool(var);
+ ALLOC_GROW(extra_cc, extra_cc_nr + 1, extra_cc_alloc);
+ extra_cc[extra_cc_nr++] = xstrdup(value);
+ return 0;
+ }
if (!strcmp(var, "diff.color") || !strcmp(var, "color.diff")) {
return 0;
}