diff options
author | Junio C Hamano <gitster@pobox.com> | 2007-11-04 01:28:46 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-11-04 01:28:46 -0700 |
commit | 140dd77a5cb2e61dcb942e245a2474fae95e42a5 (patch) | |
tree | 7403c48e96c005ce3b798566a925effd5528599a /commit.c | |
parent | 02273fdbd07ddaa13a232db0ae63a720c4a013f0 (diff) | |
parent | aacb8f10a70c07dfe1461684f098313f0edb371f (diff) | |
download | git-140dd77a5cb2e61dcb942e245a2474fae95e42a5.tar.gz |
Merge branch 'jc/format-patch-encoding'
* jc/format-patch-encoding:
test format-patch -s: make sure MIME content type is shown as needed
format-patch -s: add MIME encoding header if signer's name requires so
Diffstat (limited to 'commit.c')
-rw-r--r-- | commit.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -479,7 +479,7 @@ static int get_one_line(const char *msg) } /* High bit set, or ISO-2022-INT */ -static int non_ascii(int ch) +int non_ascii(int ch) { ch = (ch & 0xff); return ((ch & 0x80) || (ch == 0x1b)); @@ -1046,12 +1046,11 @@ static void pp_remainder(enum cmit_fmt fmt, void pretty_print_commit(enum cmit_fmt fmt, const struct commit *commit, struct strbuf *sb, int abbrev, const char *subject, const char *after_subject, - enum date_mode dmode) + enum date_mode dmode, int plain_non_ascii) { unsigned long beginning_of_body; int indent = 4; const char *msg = commit->buffer; - int plain_non_ascii = 0; char *reencoded; const char *encoding; |