3 # Copyright (c) 2010 Jakub Narebski, Christian Couder
6 test_description
='Move a binary file'
8 TEST_PASSES_SANITIZE_LEAK
=true
12 test_expect_success
'prepare repository' '
15 echo "barQ" | q_to_nul > bar &&
17 git commit -m "Initial commit"
20 test_expect_success
'move the files into a "sub" directory' '
22 git mv bar foo sub/ &&
23 git commit -m "Moved to sub/"
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 --numstat >patch-with-stat &&
42 tail -n 11 patch-with-stat >current &&
43 test_cmp expected current