t/t3511: add some tests of 'cherry-pick -s' functionality
authorBrandon Casey <drafnel@gmail.com>
Tue, 12 Feb 2013 10:17:31 +0000 (02:17 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 12 Feb 2013 19:08:59 +0000 (11:08 -0800)
Add some tests to ensure that 'cherry-pick -s' operates in the following
manner:

* Inserts a blank line before appending a s-o-b to a commit message that
does not contain a s-o-b footer

* Does not mistake first line "subject: description" as a s-o-b footer

* Does not mistake single word message body as conforming to rfc2822

* Appends a s-o-b when last s-o-b in footer does not match committer
s-o-b, even when committer's s-o-b exists elsewhere in footer.

* Does not append a s-o-b when last s-o-b matches committer s-o-b

* Correctly detects a non-conforming footer containing a mix of s-o-b
like elements and s-o-b elements. (marked "expect failure")

Signed-off-by: Brandon Casey <bcasey@nvidia.com>
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found