]> git.ipfire.org Git - thirdparty/git.git/commit
convert: add 'working-tree-encoding' attribute
authorLars Schneider <larsxschneider@gmail.com>
Sun, 15 Apr 2018 18:16:07 +0000 (20:16 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 16 Apr 2018 02:40:56 +0000 (11:40 +0900)
commit107642fe2661236f48b912480e090799e339c512
treeb2a3da7a30edca2ef3241f87656fdeef39f6de56
parentc6e48652f69f6955bbbb423100e0df2a49467db8
convert: add 'working-tree-encoding' attribute

Git recognizes files encoded with ASCII or one of its supersets (e.g.
UTF-8 or ISO-8859-1) as text files. All other encodings are usually
interpreted as binary and consequently built-in Git text processing
tools (e.g. 'git diff') as well as most Git web front ends do not
visualize the content.

Add an attribute to tell Git what encoding the user has defined for a
given file. If the content is added to the index, then Git reencodes
the content to a canonical UTF-8 representation. On checkout Git will
reverse this operation.

Signed-off-by: Lars Schneider <larsxschneider@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/gitattributes.txt
convert.c
convert.h
sha1_file.c
t/t0028-working-tree-encoding.sh [new file with mode: 0755]