t/t3511: add some tests of 'cherry-pick -s' functionality
commitf2b9a7555bb7791fa8d137da033b403d16af5085
authorBrandon Casey <drafnel@gmail.com>
Tue, 12 Feb 2013 10:17:31 +0000 (12 02:17 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 12 Feb 2013 19:08:59 +0000 (12 11:08 -0800)
tree66b3ff0a82da83b4fb1ac5fee8b6ac1fc2c9553f
parent4c9941943bebbe23039254cdda576ecd97e1d397
t/t3511: add some tests of 'cherry-pick -s' functionality

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>
t/t3511-cherry-pick-x.sh [new file with mode: 0755]