3 test_description='typechange rename detection'
7 test_expect_success setup '
10 cat ../../COPYING >foo &&
13 git commit -a -m Initial &&
17 cat ../../COPYING >bar &&
20 git commit -a -m Second &&
24 cat ../../COPYING >foo &&
26 git commit -a -m Third &&
32 git commit -a -m Fourth &&
35 # This is purely for sanity check
38 cat ../../COPYING >foo &&
39 cat ../../Makefile >bar &&
41 git commit -a -m Fifth &&
45 cat ../../Makefile >foo &&
46 cat ../../COPYING >bar &&
48 git commit -a -m Sixth &&
53 test_expect_success 'cross renames to be detected for regular files' '
55 git diff-tree five six -r --name-status -B -M | sort >actual &&
64 test_expect_success 'cross renames to be detected for typechange' '
66 git diff-tree one two -r --name-status -B -M | sort >actual &&
75 test_expect_success 'moves and renames' '
77 git diff-tree three four -r --name-status -B -M | sort >actual &&