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/"
29 diff --git a/bar b/sub/bar
33 diff --git a/foo b/sub/foo
39 test_expect_success 'git show -C -C report renames' '
40 git show -C -C --raw --binary --numstat >patch-with-stat &&
41 tail -n 11 patch-with-stat >current &&
42 test_cmp expected current