From e8f6fc93437ac5f510841bc3d6c592c411efabc3 Mon Sep 17 00:00:00 2001 From: Vitaliy Lotorev Date: Tue, 26 May 2020 19:58:14 +0000 Subject: Documentation: Provide examples for advanced regexp searching dk.brics regexp syntax reference [1] doesn't contain examples. [1] https://www.brics.dk/automaton/doc/index.html?dk/brics/automaton/RegExp.html Change-Id: I9be2a3e4f1f387ec17f1702831a9bbebc85585be --- Documentation/user-search.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/user-search.txt b/Documentation/user-search.txt index 48d331b74a..55f668e1d2 100644 --- a/Documentation/user-search.txt +++ b/Documentation/user-search.txt @@ -277,6 +277,11 @@ should be double quoted when using more complex construction (like ones using a bracket expression). For example, to match all XML files named like 'name1.xml', 'name2.xml', and 'name3.xml' use `file:"^name[1-3].xml"`. ++ +More examples: +* `-file:^path/.*` - changes that do not modify files from `path/`, +* `file:{^~(path/.*)}` - changes that modify files not from `path/` (but may +contain files from `path/`). [[file]] file:'NAME', f:'NAME':: -- cgit v1.2.3 From c2285a818df11edf53154547c439173dace35638 Mon Sep 17 00:00:00 2001 From: Vitaliy Lotorev Date: Tue, 13 Oct 2020 20:13:39 +0000 Subject: Documentation: Escape <= characters in user-search.txt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without escaping '<=' is rendered as ⇐ by AsciiDoc. Change-Id: I2223cca45f80c2aaee76d1e84c2de34e966d7620 --- Documentation/user-search.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/user-search.txt b/Documentation/user-search.txt index 55f668e1d2..3b665af6cf 100644 --- a/Documentation/user-search.txt +++ b/Documentation/user-search.txt @@ -453,7 +453,7 @@ for the given number of lines. For example, added:>50 will be true for any change which adds at least 50 lines. + -Valid relations are >=, >, <=, <, or no relation, which will match if the +Valid relations are >=, >, \<=, <, or no relation, which will match if the number of lines is exactly equal. [[commentby]] @@ -505,7 +505,7 @@ True if the number of unresolved comments satisfies the given relation for the g For example, unresolved:>0 will be true for any change which has at least one unresolved comment while unresolved:0 will be true for any change which has all comments resolved. + -Valid relations are >=, >, <=, <, or no relation, which will match if the number of unresolved +Valid relations are >=, >, \<=, <, or no relation, which will match if the number of unresolved comments is exactly equal. == Argument Quoting @@ -622,7 +622,7 @@ all changes that have a +2 vote from the change owner. Matches changes with a +1 code review where the reviewer is in the ldap/linux.workflow group. -`label:Code-Review<=-1`:: +`label:Code-Review\<=-1`:: + Matches changes with either a -1, -2, or any lower score. -- cgit v1.2.3