| # Copyright (c) 2005 Junio C Hamano |
| test_description='More rename detection tests. |
| The rename detection logic should be able to detect pure rename or |
| copy of symbolic links, but should not produce rename/copy followed |
| 'prepare reference tree' \ |
| 'echo xyzzy | tr -d '\\\\'012 >yomin && |
| git-update-index --add frotz yomin && |
| tree=$(git-write-tree) && |
| git-update-index --add --remove frotz rezrov nitfol bozbar yomin' |
| # tree has frotz pointing at xyzzy, and yomin that contains xyzzy to |
| # confuse things. work tree has rezrov (xyzzy) nitfol (xyzzy) and |
| # rezrov and nitfol are rename/copy of frotz and bozbar should be |
| GIT_DIFF_OPTS=--unified=0 git-diff-index -M -p $tree >current |
| diff --git a/bozbar b/bozbar |
| \ No newline at end of file |
| diff --git a/frotz b/nitfol |
| diff --git a/frotz b/rezrov |
| diff --git a/yomin b/yomin |
| \ No newline at end of file |
| 'compare_diff_patch current expected' |