]> www.infradead.org Git - users/dedekind/aiaiai.git/commitdiff
aiaiai-email-sh-functions: allow patches without PATCH prefix
authorJacob Keller <jacob.e.keller@intel.com>
Thu, 16 Jul 2015 00:16:03 +0000 (17:16 -0700)
committerJacob Keller <jacob.e.keller@intel.com>
Tue, 4 Aug 2015 23:31:41 +0000 (16:31 -0700)
Not all patches are submitted with a PATCH prefix. This patch enables
the PATCH prefix to be left out, and hopefully cover more patches in
testing.

Future work should include a more robust way of determining if an email
is a patch that does not rely on the subject format, such as searching
for the diff line.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
email/aiaiai-email-sh-functions

index d19e55f380326fb4ba4a98396a9fd8d0e8e108ed..f380ae87ea7c43c2f890feadce6e2fc47b2fa54f 100644 (file)
@@ -29,7 +29,7 @@ __prefix="${__blanks}([^[:blank:]]*${__blanks}${__blank})?"
 # Patch number pattern
 __num="0*([[:digit:]]+)"
 # The "PATCH" word for case-insensitive matching
-__patch="[Pp][Aa][Tt][Cc][Hh]"
+__patch="([Pp][Aa][Tt][Cc][Hh])?"
 # Sed regexp matching correct subject
 __single="^${__blah}\[${__prefix}${__patch}.*\].*$"
 # Sed regexps matching m and n