git/t/t5100
Andreas Ericsson 650d30d8a1 mailinfo: Remove only one set of square brackets
git-format-patch prepends patches with a [PATCH x/n] prefix, but
mailinfo used to remove any number of square-bracket pairs and
the content between them. This prevents one from using a commit
subject like this:

  [ and ] must be allowed as input

Removing the square bracket pair from this rather clumsily
constructed subject line loses important information, so we must
take care not to.

This patch causes the subject stripping to stop after it has
encountered one pair of square brackets.

One possible downside of this patch is that the patch-handling
programs will now fail at removing author-added square-brackets
to be removed, such as

  [RFC][PATCH x/n]

However, since format-patch only adds one set of square brackets,
this behaviour is quite easily undesrstood and defended while the
previous behaviour is not.

Signed-off-by: Andreas Ericsson <ae@op5.se>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2009-07-08 11:22:51 -07:00
..
0010 git-mailinfo: Fix getting the subject from the in-body [PATCH] line 2008-07-13 17:21:15 -07:00
empty mailinfo: tests for RFC2047 examples 2009-01-28 16:23:21 -08:00
info-from.expect mailinfo: avoid violating strbuf assertion 2008-08-19 19:36:56 -07:00
info-from.in mailinfo: avoid violating strbuf assertion 2008-08-19 19:36:56 -07:00
info0001 mailinfo: cleanup extra spaces for complex 'From:' 2009-02-01 12:11:15 -08:00
info0002
info0003
info0004
info0005
info0006
info0007 Add a couple more test cases to the suite. 2007-03-12 23:33:41 -07:00
info0008 Add a couple more test cases to the suite. 2007-03-12 23:33:41 -07:00
info0009 mailinfo: feed only one line to handle_filter() for QP input 2008-02-15 22:16:34 -08:00
info0010 git-mailinfo: Fix getting the subject from the in-body [PATCH] line 2008-07-13 17:21:15 -07:00
info0011 mailinfo: fix MIME multi-part message boundary handling 2008-08-09 01:26:35 -07:00
info0012 mailinfo: Remove only one set of square brackets 2009-07-08 11:22:51 -07:00
info0013 mailinfo: add explicit test for mails like '<a.u.thor@example.com> (A U Thor)' 2009-01-28 15:12:24 -08:00
msg0001
msg0002
msg0003
msg0004
msg0005
msg0006
msg0007 Add a couple more test cases to the suite. 2007-03-12 23:33:41 -07:00
msg0008 Add a couple more test cases to the suite. 2007-03-12 23:33:41 -07:00
msg0009 mailinfo: feed only one line to handle_filter() for QP input 2008-02-15 22:16:34 -08:00
msg0010 git-mailinfo: Fix getting the subject from the in-body [PATCH] line 2008-07-13 17:21:15 -07:00
msg0011 mailinfo: fix MIME multi-part message boundary handling 2008-08-09 01:26:35 -07:00
msg0012 mailinfo: correctly handle multiline 'Subject:' header 2009-01-10 17:54:30 -08:00
msg0013 mailinfo: add explicit test for mails like '<a.u.thor@example.com> (A U Thor)' 2009-01-28 15:12:24 -08:00
nul-b64.expect mailinfo: apply the same fix not to lose NULs in BASE64 and QP codepaths 2008-05-25 13:22:18 -07:00
nul-b64.in mailinfo: apply the same fix not to lose NULs in BASE64 and QP codepaths 2008-05-25 13:22:18 -07:00
nul-plain t5100: Avoid filename "nul" 2008-05-27 23:12:29 -07:00
patch0001
patch0002
patch0003
patch0004
patch0005 git-mailinfo fixes for patch munging 2007-03-31 00:59:19 -07:00
patch0006
patch0007 Add a couple more test cases to the suite. 2007-03-12 23:33:41 -07:00
patch0008 Add a couple more test cases to the suite. 2007-03-12 23:33:41 -07:00
patch0009 mailinfo: feed only one line to handle_filter() for QP input 2008-02-15 22:16:34 -08:00
patch0010 git-mailinfo: Fix getting the subject from the in-body [PATCH] line 2008-07-13 17:21:15 -07:00
patch0011 mailinfo: fix MIME multi-part message boundary handling 2008-08-09 01:26:35 -07:00
patch0012 mailinfo: correctly handle multiline 'Subject:' header 2009-01-10 17:54:30 -08:00
patch0013 mailinfo: add explicit test for mails like '<a.u.thor@example.com> (A U Thor)' 2009-01-28 15:12:24 -08:00
rfc2047-info-0001 mailinfo: tests for RFC2047 examples 2009-01-28 16:23:21 -08:00
rfc2047-info-0002 mailinfo: tests for RFC2047 examples 2009-01-28 16:23:21 -08:00
rfc2047-info-0003 mailinfo: tests for RFC2047 examples 2009-01-28 16:23:21 -08:00
rfc2047-info-0004 mailinfo: cleanup extra spaces for complex 'From:' 2009-02-01 12:11:15 -08:00
rfc2047-info-0005 mailinfo: tests for RFC2047 examples 2009-01-28 16:23:21 -08:00
rfc2047-info-0006 mailinfo: tests for RFC2047 examples 2009-01-28 16:23:21 -08:00
rfc2047-info-0007 mailinfo: tests for RFC2047 examples 2009-01-28 16:23:21 -08:00
rfc2047-info-0008 mailinfo: tests for RFC2047 examples 2009-01-28 16:23:21 -08:00
rfc2047-info-0009 mailinfo: tests for RFC2047 examples 2009-01-28 16:23:21 -08:00
rfc2047-info-0010 mailinfo: tests for RFC2047 examples 2009-01-28 16:23:21 -08:00
rfc2047-info-0011 mailinfo: tests for RFC2047 examples 2009-01-28 16:23:21 -08:00
rfc2047-samples.mbox mailinfo: tests for RFC2047 examples 2009-01-28 16:23:21 -08:00
sample.mbox mailinfo: Remove only one set of square brackets 2009-07-08 11:22:51 -07:00