about summary refs log tree commit diff
path: root/README
diff options
context:
space:
mode:
authorclassabbyamp <void@placeviolette.net>2023-03-22 05:55:11 -0400
committerLeah Neukirchen <leah@vuxu.org>2023-08-05 19:25:23 +0200
commit429db434a76e2931985d347ad60b7e37debbdaee (patch)
tree41549b2863f8458639e742628b26f00bbbf037b0 /README
parent2ca7afbfc5e003bc9812f32c3129a580706bb7a3 (diff)
downloadxtools-429db434a76e2931985d347ad60b7e37debbdaee.tar.gz
xtools-429db434a76e2931985d347ad60b7e37debbdaee.tar.xz
xtools-429db434a76e2931985d347ad60b7e37debbdaee.zip
xlocate: add ability to pass certain flags to git grep
implemented what I thought would be useful and made sense, namely:

- `-E, --extended-regexp`
- `-F, --fixed-strings`
- `-G, --basic-regexp`
- `-P, --perl-regexp`
- `-i, --ignore-case`
- `-w, --word-regexp`

This will also allow for someone with `grep.patternType` or
`grep.extendedRegexp` set in git's config to change the pattern type.
Diffstat (limited to 'README')
-rw-r--r--README4
1 files changed, 3 insertions, 1 deletions
diff --git a/README b/README
index 291c1a4..d481f27 100644
--- a/README
+++ b/README
@@ -78,12 +78,14 @@ COMMANDS
         - use ‘:pkgname’ to lint template as staged in the git index
         - use ‘:’ to lint all templates staged in the git index
 
-     xlocate -g | -S | pattern
+     xlocate -g | -S | [-EFGPiw] pattern
         – locate files in all XBPS packages
           -g  Update a git based xlocate database, useful for local
               repositories
           -S  Sync with the official git based xlocate database, which is
               recommended before using the tool
+          -E | -F | -G | -P | -i | -w
+              Modifies how pattern is matched. See git-grep(1) for more info
 
      xlog pkg
         – open commit log for XBPS template