| # Copyright (c) 2010 Jakub Narebski, Christian Couder |
| test_description='Move a binary file' |
| test_expect_success 'prepare repository' ' |
| echo "barQ" | q_to_nul > bar && |
| git commit -m "Initial commit" |
| test_expect_success 'move the files into a "sub" directory' ' |
| git commit -m "Moved to sub/" |
| diff --git a/bar b/sub/bar |
| diff --git a/foo b/sub/foo |
| test_expect_success 'git show -C -C report renames' ' |
| git show -C -C --raw --binary --numstat >patch-with-stat && |
| tail -n 11 patch-with-stat >current && |
| test_cmp expected current |