3 # Copyright (c) 2005 Junio C Hamano
6 test_description='More rename detection tests.
8 The rename detection logic should be able to detect pure rename or
9 copy of symbolic links, but should not produce rename/copy followed
13 . "$TEST_DIRECTORY"/diff-lib.sh
15 if ! test_have_prereq SYMLINKS
17 say 'Symbolic links not supported, skipping tests.'
22 'prepare reference tree' \
23 'echo xyzzy | tr -d '\\\\'012 >yomin &&
25 git update-index --add frotz yomin &&
26 tree=$(git write-tree) &&
35 git update-index --add --remove frotz rezrov nitfol bozbar yomin'
37 # tree has frotz pointing at xyzzy, and yomin that contains xyzzy to
38 # confuse things. work tree has rezrov (xyzzy) nitfol (xyzzy) and
40 # rezrov and nitfol are rename/copy of frotz and bozbar should be
43 GIT_DIFF_OPTS=--unified=0 git diff-index -M -p $tree >current
45 diff --git a/bozbar b/bozbar
51 \ No newline at end of file
52 diff --git a/frotz b/nitfol
56 diff --git a/frotz b/rezrov
60 diff --git a/yomin b/yomin
61 deleted file mode 100644
66 \ No newline at end of file
70 'validate diff output' \
71 'compare_diff_patch current expected'