aboutsummaryrefslogtreecommitdiff
path: root/builtin-log.c
diff options
context:
space:
mode:
authorMichael Hendricks <michael@ndrix.org>2009-03-26 10:51:05 -0600
committerJunio C Hamano <gitster@pobox.com>2009-03-27 23:49:50 -0700
commitd7d9c2d04962b5aec34ec891d82dd74262306c56 (patch)
tree7f4d13ed42f8c36444a0d4845fce3cabb751503c /builtin-log.c
parenteed1fcd76d8893ab687c700e1729faea025ba7a8 (diff)
downloadgit-d7d9c2d04962b5aec34ec891d82dd74262306c56.tar.gz
git-d7d9c2d04962b5aec34ec891d82dd74262306c56.tar.xz
format-patch: add arbitrary email headers
format-patch supports the format.headers configuration for adding arbitrary email headers to the patches it outputs. This patch adds support for an --add-header argument which makes the same feature available from the command line. This is useful when the content of custom email headers must change from branch to branch. This patch has been sponsored by Grant Street Group Signed-off-by: Michael Hendricks <michael@ndrix.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-log.c')
-rw-r--r--builtin-log.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/builtin-log.c b/builtin-log.c
index c7a577259..27bc0dce2 100644
--- a/builtin-log.c
+++ b/builtin-log.c
@@ -918,6 +918,8 @@ int cmd_format_patch(int argc, const char **argv, const char *prefix)
cover_letter = 1;
else if (!strcmp(argv[i], "--no-binary"))
no_binary_diff = 1;
+ else if (!prefixcmp(argv[i], "--add-header="))
+ add_header(argv[i] + 13);
else
argv[j++] = argv[i];
}