diff options
author | Daniel Barkalow <barkalow@iabervon.org> | 2008-02-19 02:40:35 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-02-19 21:49:38 -0800 |
commit | 736cc67dd7f4f8004215e24f876178e6f34c191d (patch) | |
tree | 53585ea3f7a641b60ad4993d9d0f8513e7494bdd /builtin-log.c | |
parent | 3ee79d9f59684778151804c02cc6ad155b30efde (diff) | |
download | git-736cc67dd7f4f8004215e24f876178e6f34c191d.tar.gz git-736cc67dd7f4f8004215e24f876178e6f34c191d.tar.xz |
Support a --cc=<email> option in format-patch
When you have particular reviewers you want to sent particular series
to, it's nice to be able to generate the whole series with them as
additional recipients, without configuring them into your general
headers or adding them by hand afterwards.
Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-log.c')
-rw-r--r-- | builtin-log.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/builtin-log.c b/builtin-log.c index 71ae55b9e..0b348eb6b 100644 --- a/builtin-log.c +++ b/builtin-log.c @@ -771,6 +771,10 @@ int cmd_format_patch(int argc, const char **argv, const char *prefix) die("Need a number for --start-number"); start_number = strtol(argv[i], NULL, 10); } + else if (!prefixcmp(argv[i], "--cc=")) { + ALLOC_GROW(extra_cc, extra_cc_nr + 1, extra_cc_alloc); + extra_cc[extra_cc_nr++] = xstrdup(argv[i] + 5); + } else if (!strcmp(argv[i], "-k") || !strcmp(argv[i], "--keep-subject")) { keep_subject = 1; |