diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-03-15 00:09:20 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-03-15 00:09:33 -0700 |
commit | 267123b4299ea2c2f090ef169f9fc5039897cd72 (patch) | |
tree | ecbbe5be7cfd059b001af3195d71a0b9cece8c30 /builtin-log.c | |
parent | 2a2ad0c0007b9f79768b4564644ac9eaaa7310b6 (diff) | |
parent | 6bf4f1b4c9d78b2061bd5f3bf77bb21112b755be (diff) | |
download | git-267123b4299ea2c2f090ef169f9fc5039897cd72.tar.gz |
Merge branch 'maint'
* maint:
format-patch: generate MIME header as needed even when there is format.header
Diffstat (limited to 'builtin-log.c')
-rw-r--r-- | builtin-log.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/builtin-log.c b/builtin-log.c index d983cbc7bc..5c00725f03 100644 --- a/builtin-log.c +++ b/builtin-log.c @@ -662,6 +662,7 @@ static void make_cover_letter(struct rev_info *rev, int use_stdout, int i; const char *encoding = "utf-8"; struct diff_options opts; + int need_8bit_cte = 0; if (rev->commit_format != CMIT_FMT_EMAIL) die("Cover letter needs email format"); @@ -672,7 +673,8 @@ static void make_cover_letter(struct rev_info *rev, int use_stdout, head_sha1 = sha1_to_hex(head->object.sha1); - log_write_email_headers(rev, head_sha1, &subject_start, &extra_headers); + log_write_email_headers(rev, head_sha1, &subject_start, &extra_headers, + &need_8bit_cte); committer = git_committer_info(0); @@ -681,7 +683,7 @@ static void make_cover_letter(struct rev_info *rev, int use_stdout, pp_user_info(NULL, CMIT_FMT_EMAIL, &sb, committer, DATE_RFC2822, encoding); pp_title_line(CMIT_FMT_EMAIL, &msg, &sb, subject_start, extra_headers, - encoding, 0); + encoding, need_8bit_cte); pp_remainder(CMIT_FMT_EMAIL, &msg, &sb, 0); printf("%s\n", sb.buf); |