3 # Copyright (c) 2005 Junio C Hamano
6 test_description='Test rename detection in diff engine.
30 'update-cache --add a file.' \
31 'git-update-index --add path0'
35 'tree=$(git-write-tree) && echo $tree'
37 sed -e 's/line/Line/' <path0 >path1
40 'renamed and edited the file.' \
41 'git-update-index --add --remove path0 path1'
44 'git-diff-index -p -M after rename and editing.' \
45 'git-diff-index -p -M $tree >current'
47 diff --git a/path0 b/path1
52 @@ -8,7 +8,7 @@ Line 7
64 'validate the output.' \
65 'compare_diff_patch current expected'