| test_description='Examples from the git-notes man page |
| Make sure the manual is not full of lies.' |
| test_expect_success 'setup' ' |
| test_expect_success 'example 1: notes to add an Acked-by line' ' |
| Acked-by: A C Ker <acker@example.com> |
| git notes add -m "Acked-by: A C Ker <acker@example.com>" B && |
| git show -s B^{commit} >log && |
| test_expect_success 'example 2: binary notes' ' |
| cp "$TEST_DIRECTORY"/test-binary-1.png . && |
| blob=$(git hash-object -w test-binary-1.png) && |
| git notes --ref=logo add -C "$blob" && |
| git notes --ref=logo copy B C && |
| git notes --ref=logo show C >actual && |
| test_cmp test-binary-1.png actual |