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