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
19 test_expect_success
'add a file path0 and commit.' '
21 git commit -m "Add path0"
24 echo >path0
'New line 1
28 test_expect_success
'Change path0.' '
30 git commit -m "Change path0"
34 test_expect_success
'copy path0 to path1.' '
36 git commit -m "Copy path1 from path0"
39 test_expect_success
'find the copy path0 -> path1 harder' '
40 git log --follow --name-status --pretty="format:%s" path1 > current
54 test_expect_success
'validate the output.' '
55 compare_diff_patch current expected