diff options
author | Elijah Newren <newren@gmail.com> | 2019-05-13 21:31:01 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-05-14 16:48:56 +0900 |
commit | 57a8be2cb0cb6825d25885b34106aab79d6c9853 (patch) | |
tree | c346cef4f9ab713bfad8e2c04886355205cf7bde /t/t5306-pack-nobase.sh | |
parent | fast-export: avoid stripping encoding header if we cannot reencode (diff) | |
download | tgif-57a8be2cb0cb6825d25885b34106aab79d6c9853.tar.xz |
fast-export: differentiate between explicitly UTF-8 and implicitly UTF-8
The find_encoding() function returned the encoding used by a commit
message, returning a default of git_commit_encoding (usually UTF-8).
Although the current code does not differentiate between a commit which
explicitly requested UTF-8 and one where we just assume UTF-8 because no
encoding is set, it will become important when we try to preserve the
encoding header. Since is_encoding_utf8() returns true when passed
NULL, we can just return NULL from find_encoding() instead of returning
git_commit_encoding.
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5306-pack-nobase.sh')
0 files changed, 0 insertions, 0 deletions