3 # Copyright (c) 2010 Bo Yang
6 test_description
='Test --follow should always find copies hard in git log.
10 TEST_PASSES_SANITIZE_LEAK
=true
12 .
"$TEST_DIRECTORY"/lib-diff.sh
20 'add a file path0 and commit.' \
22 git commit -m "Add path0"'
24 echo >path0
'New line 1
31 git commit -m "Change path0"'
35 'copy path0 to path1.' \
37 git commit -m "Copy path1 from path0"'
40 'find the copy path0 -> path1 harder' \
41 'git log --follow --name-status --pretty="format:%s" path1 > current'
55 'validate the output.' \
56 'compare_diff_patch current expected'