git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] git-format-patch: add a new format.cc configuration variable

From
Miklos Vajna <vmiklos@frugalware.org>
Date
Apr 26, 2008, 21:19 UTC
Message-ID
<1209244746-12649-1-git-send-email-vmiklos@frugalware.org>

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>
---
 Documentation/git-format-patch.txt |    1 +
 builtin-log.c                      |    7 +++++++
 2 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/Documentation/git-format-patch.txt b/Documentation/git-format-patch.txt
index b5207b7..b2bdcb2 100644
--- a/Documentation/git-format-patch.txt
+++ b/Documentation/git-format-patch.txt
@@ -168,6 +168,7 @@ and file suffix, and number patches when outputting more than one.
         subjectprefix = CHANGE
         suffix = .txt
         numbered = auto
+        cc = <email>
 ------------
 
 
diff --git a/builtin-log.c b/builtin-log.c
index 1670d0b..d7907c9 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;
 	}
-- 
1.5.5.1.91.g499fc.dirty
Next: Johannes Schindelin
Message 1 of 12 in “git-format-patch: add a new format.cc configuration variable”
  1. git-format-patch: add a new format.cc configuration variableMiklos Vajna, Apr 26, 2008
  2. Johannes SchindelinApr 26, 2008
  3. Miklos VajnaApr 26, 2008
  4. Johannes SchindelinApr 27, 2008
  5. git-send-email: add a new sendemail.cc configuration variableMiklos Vajna, Apr 27, 2008
  6. Junio C HamanoApr 27, 2008
  7. Miklos VajnaApr 27, 2008
  8. Jeff KingApr 27, 2008
  9. Add tests for sendemail.cc configuration variableMiklos Vajna, Apr 29, 2008
  10. Jay SoffianApr 29, 2008
  11. Junio C HamanoApr 27, 2008
  12. bash: Add long option completion for 'git send-email'Teemu Likonen, Apr 27, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.