]> git.ipfire.org Git - thirdparty/git.git/commit - fast-import.c
fast-import: support 'encoding' commit header
authorElijah Newren <newren@gmail.com>
Tue, 14 May 2019 04:30:59 +0000 (21:30 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 14 May 2019 07:48:56 +0000 (16:48 +0900)
commit3edfcc65fdfc708c1c8f1d314885eecf9beb9b67
tree23d4c0a0758dcb4f34fe82781a7749e68aa310b2
parent32615ce7626f8f07990bd1c01f49be6dca7d4a2d
fast-import: support 'encoding' commit header

Since git supports commit messages with an encoding other than UTF-8,
allow fast-import to import such commits.  This may be useful for folks
who do not want to reencode commit messages from an external system, and
may also be useful to achieve reversible history rewrites (e.g. sha1sum
<-> sha256sum transitions or subtree work) with git repositories that
have used specialized encodings in their commit history.

Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-fast-import.txt
fast-import.c
t/t9300-fast-import.sh