]> git.ipfire.org Git - thirdparty/git.git/commit
fast-export: do automatic reencoding of commit messages only if requested
authorElijah Newren <newren@gmail.com>
Tue, 14 May 2019 04:31:02 +0000 (21:31 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 14 May 2019 07:48:56 +0000 (16:48 +0900)
commite80001f8fd7f608c6d05ce0ab2ebfc90d724a307
tree862a3cc24ecda7a58d66dd0ac76531780607d46e
parent57a8be2cb0cb6825d25885b34106aab79d6c9853
fast-export: do automatic reencoding of commit messages only if requested

Automatic re-encoding of commit messages (and dropping of the encoding
header) hurts attempts to do reversible history rewrites (e.g. sha1sum
<-> sha256sum transitions, some subtree rewrites), and seems
inconsistent with the general principle followed elsewhere in
fast-export of requiring explicit user requests to modify the output
(e.g. --signed-tags=strip, --tag-of-filtered-object=rewrite).  Add a
--reencode flag that the user can use to specify, and like other
fast-export flags, default it to 'abort'.

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