3 # Copyright (c) 2005 Junio C Hamano
6 test_description
='Test rename detection in diff engine.
29 'update-cache --add a file.' \
30 'git-update-cache --add path0'
34 'tree=$(git-write-tree)'
36 sed -e 's/line/Line/' <path0
>path1
39 'renamed and edited the file.' \
40 'git-update-cache --add --remove path0 path1'
43 'git-diff-cache -p -M after rename and editing.' \
44 'git-diff-cache -p -M $tree >current'
46 diff --git a
/path0 b
/path1
51 @@
-8,7 +8,7 @@ Line
7
63 'validate the output.' \
64 'diff -I "rename similarity.*" >/dev/null current expected'