summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Miller <marco.mmiller@gmail.com>2020-10-30 12:07:32 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2020-10-30 12:07:32 +0000
commit10b03f937d9b8c1cab7053be108408c41b2777a0 (patch)
treef0c32ad691f74197e5e372b542035676b71db423
parentd8712a9e9ec260663cb517b8c78ec2523430eaf4 (diff)
parente8f6fc93437ac5f510841bc3d6c592c411efabc3 (diff)
Merge "Documentation: Provide examples for advanced regexp searching" into stable-2.16
-rw-r--r--Documentation/user-search.txt5
1 files changed, 5 insertions, 0 deletions
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'::