X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft4003-diff-rename-1.sh;h=63a3103b4b372dd663249beb38d92592fb9a00af;hb=8ebb0184028d3dcdbc659920523338dd53770b03;hp=c5f325577ddb2486de8e01bde350f9903f3bde04;hpb=25d5ea410fd528c13e5f56f7836ee8a3b839b168;p=git.git diff --git a/t/t4003-diff-rename-1.sh b/t/t4003-diff-rename-1.sh index c5f325577..63a3103b4 100644 --- a/t/t4003-diff-rename-1.sh +++ b/t/t4003-diff-rename-1.sh @@ -7,14 +7,7 @@ test_description='More rename detection ' . ./test-lib.sh - -compare_diff_patch () { - # When heuristics are improved, the score numbers would change. - # Ignore them while comparing. - sed -e '/^similarity index [0-9]*%$/d' <"$1" >.tmp-1 - sed -e '/^similarity index [0-9]*%$/d' <"$2" >.tmp-2 - diff -u .tmp-1 .tmp-2 && rm -f .tmp-1 .tmp-2 -} +. ../diff-lib.sh ;# test-lib chdir's into trash test_expect_success \ 'prepare reference tree' \ @@ -47,8 +40,8 @@ copy to COPYING.1 - HOWEVER, in order to allow a migration to GPLv3 if that seems like + However, in order to allow a migration to GPLv3 if that seems like diff --git a/COPYING b/COPYING.2 -rename old COPYING -rename new COPYING.2 +rename from COPYING +rename to COPYING.2 --- a/COPYING +++ b/COPYING.2 @@ -2 +2 @@