diff options
| author | Junio C Hamano <gitster@pobox.com> | 2007-11-24 18:02:30 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2007-11-24 18:02:30 -0800 |
| commit | d1c7cd13dc7839b3c0b4d56a84f9effc9976144e (patch) | |
| tree | abe753b458d1258181130c62c67c3bb0680e2af3 /commit.c | |
| parent | Merge branch 'bs/maint-t7005' into maint (diff) | |
| parent | test format-patch -s: make sure MIME content type is shown as needed (diff) | |
| download | git-d1c7cd13dc7839b3c0b4d56a84f9effc9976144e.tar.gz git-d1c7cd13dc7839b3c0b4d56a84f9effc9976144e.zip | |
Merge branch 'jc/maint-format-patch-encoding' into maint
* jc/maint-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 | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -479,7 +479,7 @@ static int get_one_line(const char *msg, unsigned long len) } /* 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)); @@ -1158,13 +1158,13 @@ unsigned long pretty_print_commit(enum cmit_fmt fmt, char **buf_p, unsigned long *space_p, int abbrev, const char *subject, const char *after_subject, - enum date_mode dmode) + enum date_mode dmode, + int plain_non_ascii) { unsigned long offset = 0; unsigned long beginning_of_body; int indent = 4; const char *msg = commit->buffer; - int plain_non_ascii = 0; char *reencoded; const char *encoding; char *buf; |
