diff options
author | Junio C Hamano <gitster@pobox.com> | 2007-10-31 14:55:17 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-11-01 17:18:39 -0700 |
commit | 4593fb84051d39f65cec81958e91056986e4682f (patch) | |
tree | 1578c05838433c52285292a762077317d86fee95 /builtin-branch.c | |
parent | 3e4bb087a18435b12eb82116e93af2887578e816 (diff) | |
download | git-4593fb84051d39f65cec81958e91056986e4682f.tar.gz git-4593fb84051d39f65cec81958e91056986e4682f.tar.xz |
format-patch -s: add MIME encoding header if signer's name requires so
When the body of the commit log message contains a non-ASCII character,
format-patch correctly emitted the encoding header to mark the resulting
message as such. However, if the original message was fully ASCII, the
command line switch "-s" was given to add a new sign-off, and
the signer's name was not ASCII only, the resulting message would have
contained non-ASCII character but was not marked as such.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-branch.c')
-rw-r--r-- | builtin-branch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-branch.c b/builtin-branch.c index 3da8b55b8..3e020ccf1 100644 --- a/builtin-branch.c +++ b/builtin-branch.c @@ -276,7 +276,7 @@ static void print_ref_item(struct ref_item *item, int maxwidth, int verbose, commit = lookup_commit(item->sha1); if (commit && !parse_commit(commit)) { pretty_print_commit(CMIT_FMT_ONELINE, commit, - &subject, 0, NULL, NULL, 0); + &subject, 0, NULL, NULL, 0, 0); sub = subject.buf; } printf("%c %s%-*s%s %s %s\n", c, branch_get_color(color), |