3 test_description='rebase should handle arbitrary git message'
8 This is an example of a commit log message
9 that does not conform to git commit convention.
11 It has two paragraphs, but its first paragraph is not friendly
12 to oneline summary format.
16 commit log message containing a diff
20 test_expect_success setup '
24 git add file1 file2 &&
26 git commit -m "Initial commit" &&
27 git branch diff-in-message &&
29 git checkout -b multi-line-subject &&
35 git cat-file commit HEAD | sed -e "1,/^\$/d" >F0 &&
37 git checkout diff-in-message &&
38 echo "commit log message containing a diff" >G &&
42 git diff --cached >>G &&
46 git cat-file commit HEAD | sed -e "1,/^\$/d" >G0 &&
48 git checkout master &&
53 git commit -m "Second commit"
56 test_expect_success 'rebase commit with multi-line subject' '
58 git rebase master multi-line-subject &&
59 git cat-file commit HEAD | sed -e "1,/^\$/d" >F1 &&
65 test_expect_success 'rebase commit with diff in message' '
66 git rebase master diff-in-message &&
67 git cat-file commit HEAD | sed -e "1,/^$/d" >G1 &&