| # 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/" |
| bar => sub/bar | Bin 5 -> 5 bytes |
| 2 files changed, 0 insertions(+), 0 deletions(-) |
| 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 --stat | tail -n 12 > current && |
| test_cmp expected current |