Allow 'message' predicate to take a regular expression as argument
This change adds RegEx support to the existing 'message' predicate.
The primary intention is for this to be used in submit requirements,
but since some index backends (e.g. Lucene) support regular expressions,
we add it as index predicate.
The matching is the same as for other index predicates
(e.g. RegexDirectoryPredicate) using brics.dk/automaton. This is a
notable difference to Prolog (which uses Java's built in Pattern).
Documentation was adapted.
Change-Id: Ic33c935feab18ce6e8a71b89b36a68c5461e8e58
Release-Notes: Added new message:regex search operator
diff --git a/Documentation/user-search.txt b/Documentation/user-search.txt
index ac62933..61a7365 100644
--- a/Documentation/user-search.txt
+++ b/Documentation/user-search.txt
@@ -334,6 +334,10 @@
message:'MESSAGE'::
+
Changes that match 'MESSAGE' arbitrary string in the commit message body.
+By default full text matching is used, but regular expressions can be
+enabled by starting with `^`.
+The link:http://www.brics.dk/automaton/[dk.brics.automaton library,role=external,window=_blank]
+is used for the evaluation of such patterns.
[[comment]]
comment:'TEXT'::