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
15 'prepare reference tree' \
16 'echo xyzzy | tr -d '\\\\'012 >yomin &&
18 git-update-index --add frotz yomin &&
19 tree=$(git-write-tree) &&
28 git-update-index --add --remove frotz rezrov nitfol bozbar yomin'
30 # tree has frotz pointing at xyzzy, and yomin that contains xyzzy to
31 # confuse things. work tree has rezrov (xyzzy) nitfol (xyzzy) and
33 # rezrov and nitfol are rename/copy of frotz and bozbar should be
36 GIT_DIFF_OPTS
=--unified=0 git-diff-index
-M -p $tree >current
38 diff --git a
/bozbar b
/bozbar
44 \ No newline
at end of
file
45 diff --git a
/frotz b
/nitfol
49 diff --git a
/frotz b
/rezrov
53 diff --git a
/yomin b
/yomin
54 deleted
file mode
100644
59 \ No newline
at end of
file
63 'validate diff output' \
64 'diff -u current expected'