diff options
author | Đoàn Trần Công Danh <congdanhqx@gmail.com> | 2021-05-06 22:02:18 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-05-07 06:40:25 +0900 |
commit | d582992e80aa29c37cb449922e713a0c288ffe91 (patch) | |
tree | f2c60a7d73adc4ecf519308118cf37ee7ec1bcd8 /t/t4013/diff.log_--root_--patch-with-stat_--summary_master | |
parent | The thirteenth batch (diff) | |
download | tgif-d582992e80aa29c37cb449922e713a0c288ffe91.tar.xz |
mailinfo: load default metainfo_charset lazily
In a later change, we will use parse_option to parse mailinfo's options.
In mailinfo, both "-u", "-n", and "--encoding" try to set the same
field, with "-u" reset that field to some default value from
configuration variable "i18n.commitEncoding".
Let's delay the setting of that field until we finish processing all
options. By doing that, "i18n.commitEncoding" can be parsed on demand.
More importantly, it cleans the way for using parse_option.
This change introduces some inconsistent brackets "{}" in "if/else if"
construct, however, we will rewrite them in the next few changes.
Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.log_--root_--patch-with-stat_--summary_master')
0 files changed, 0 insertions, 0 deletions