From: Matthieu Moy Date: Sun, 28 Sep 2008 02:06:58 GMT Subject: [PATCH] Add a basic test for the textconv filter. Message-ID: <1222567618-22156-6-git-send-email-Matthieu.Moy@imag.fr> In-Reply-To: <1222567618-22156-5-git-send-email-Matthieu.Moy@imag.fr> --- t/t4020-diff-external.sh | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/t/t4020-diff-external.sh b/t/t4020-diff-external.sh index dfe3fbc..cf99912 100755 --- a/t/t4020-diff-external.sh +++ b/t/t4020-diff-external.sh @@ -99,6 +99,13 @@ test_expect_success 'no diff with -diff' ' git diff | grep Binary ' +test_expect_success 'textconv attribute' ' + git config textconv.echo.command echo + echo >.gitattributes "file textconv=echo" + + git diff | grep "^+file$" +' + echo NULZbetweenZwords | perl -pe 'y/Z/\000/' > file test_expect_success 'force diff with "diff"' ' -- 1.6.0.2.312.g1ef81a