3 # Copyright (c) 2010 Jakub Narebski, Christian Couder
6 test_description='Move a binary file'
11 test_expect_success 'prepare repository' '
14 echo "barQ" | q_to_nul > bar &&
16 git commit -m "Initial commit"
19 test_expect_success 'move the files into a "sub" directory' '
21 git mv bar foo sub/ &&
22 git commit -m "Moved to sub/"
26 bar => sub/bar | Bin 5 -> 5 bytes
28 2 files changed, 0 insertions(+), 0 deletions(-)
30 diff --git a/bar b/sub/bar
34 diff --git a/foo b/sub/foo
40 test_expect_success 'git show -C -C report renames' '
41 git show -C -C --raw --binary --stat | tail -n 12 > current &&
42 test_cmp expected current