From 5fda48d67c82e07950e0b0c21cd8c97daefd7be0 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Sat, 7 Jul 2007 18:50:39 +0100 Subject: Fix "apply --reverse" with regard to whitespace "git apply" used to take check the whitespace in the wrong direction. Noticed by Daniel Barkalow. Signed-off-by: Johannes Schindelin Signed-off-by: Junio C Hamano --- t/t4116-apply-reverse.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 't') diff --git a/t/t4116-apply-reverse.sh b/t/t4116-apply-reverse.sh index 2685b2263..11e02807a 100755 --- a/t/t4116-apply-reverse.sh +++ b/t/t4116-apply-reverse.sh @@ -82,4 +82,10 @@ test_expect_success 'apply in reverse without postimage' ' ) ' +test_expect_success 'reversing a whitespace introduction' ' + sed "s/a/a /" < file1 > file1.new && + mv file1.new file1 && + git diff | git apply --reverse --whitespace=error +' + test_done -- cgit v1.2.1