]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/am.c
builtin-am: implement -u/--utf8
authorPaul Tan <pyokagan@gmail.com>
Tue, 4 Aug 2015 13:51:45 +0000 (21:51 +0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 5 Aug 2015 05:02:11 +0000 (22:02 -0700)
commitef7ee16d75855fb17578e3f29e33f17ba107aac1
tree4396729ec99d5bfada8368e46c531f53c4294da3
parent6d42ac2941cac80b44e318d867bae7979c1af6fe
builtin-am: implement -u/--utf8

Since d1c5f2a (Add git-am, applymbox replacement., 2005-10-07),
git-am.sh supported the -u,--utf8 option. If set, the -u option will be
passed to git-mailinfo to re-code the commit log message and authorship
in the charset specified by i18n.commitencoding. If unset, the -n option
will be passed to git-mailinfo, which disables the re-encoding.

Since d84029b (--utf8 is now default for 'git-am', 2007-01-08), --utf8
is specified by default in git-am.sh.

Re-implement the above in builtin/am.c.

Signed-off-by: Paul Tan <pyokagan@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/am.c