summaryrefslogtreecommitdiff
path: root/t/t0028-working-tree-encoding.sh
diff options
context:
space:
mode:
authorLars Schneider <larsxschneider@gmail.com>2018-04-15 18:16:09 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-04-16 02:40:56 (GMT)
commit541d059cd903bb8e510f876ea2bc33719b76b33c (patch)
tree211bc54090caee4b0d101ad95b904415d7874664 /t/t0028-working-tree-encoding.sh
parent7a17918c34f4e83982456ffe22d880c3cda5384f (diff)
downloadgit-541d059cd903bb8e510f876ea2bc33719b76b33c.zip
git-541d059cd903bb8e510f876ea2bc33719b76b33c.tar.gz
git-541d059cd903bb8e510f876ea2bc33719b76b33c.tar.bz2
convert: add tracing for 'working-tree-encoding' attribute
Add the GIT_TRACE_WORKING_TREE_ENCODING environment variable to enable tracing for content that is reencoded with the 'working-tree-encoding' attribute. This is useful to debug encoding issues. Signed-off-by: Lars Schneider <larsxschneider@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t0028-working-tree-encoding.sh')
-rwxr-xr-xt/t0028-working-tree-encoding.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/t/t0028-working-tree-encoding.sh b/t/t0028-working-tree-encoding.sh
index a318d03..026544c 100755
--- a/t/t0028-working-tree-encoding.sh
+++ b/t/t0028-working-tree-encoding.sh
@@ -4,6 +4,8 @@ test_description='working-tree-encoding conversion via gitattributes'
. ./test-lib.sh
+GIT_TRACE_WORKING_TREE_ENCODING=1 && export GIT_TRACE_WORKING_TREE_ENCODING
+
test_expect_success 'setup test files' '
git config core.eol lf &&