| test_description='rebase should handle arbitrary git message' |
| This is an example of a commit log message |
| that does not conform to git commit convention. |
| It has two paragraphs, but its first paragraph is not friendly |
| to oneline summary format. |
| commit log message containing a diff |
| test_expect_success setup ' |
| git commit -m "Initial commit" && |
| git branch diff-in-message && |
| git checkout -b multi-line-subject && |
| git cat-file commit HEAD | sed -e "1,/^\$/d" >F0 && |
| git checkout diff-in-message && |
| echo "commit log message containing a diff" >G && |
| git cat-file commit HEAD | sed -e "1,/^\$/d" >G0 && |
| git commit -m "Second commit" |
| test_expect_success 'rebase commit with multi-line subject' ' |
| git rebase master multi-line-subject && |
| git cat-file commit HEAD | sed -e "1,/^\$/d" >F1 && |
| test_expect_success 'rebase commit with diff in message' ' |
| git rebase master diff-in-message && |
| git cat-file commit HEAD | sed -e "1,/^$/d" >G1 && |