diff options
author | classabbyamp <void@placeviolette.net> | 2023-03-22 05:55:11 -0400 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2023-08-05 19:25:23 +0200 |
commit | 429db434a76e2931985d347ad60b7e37debbdaee (patch) | |
tree | 41549b2863f8458639e742628b26f00bbbf037b0 /xtools.1 | |
parent | 2ca7afbfc5e003bc9812f32c3129a580706bb7a3 (diff) | |
download | xtools-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 'xtools.1')
-rw-r--r-- | xtools.1 | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/xtools.1 b/xtools.1 index 13aedc2..8aa5b1f 100644 --- a/xtools.1 +++ b/xtools.1 @@ -100,13 +100,19 @@ use .Sq Cm \&: to lint all templates staged in the git index .El -.It Nm xlocate Fl g | Fl S | Ar pattern +.It Nm xlocate Fl g | Fl S | Oo Fl EFGPiw Oc Ar pattern .Nd locate files in all XBPS packages .Bl -tag -offset 2n -width 2n -compact .It Fl g Update a git based xlocate database, useful for local repositories .It Fl S Sync with the official git based xlocate database, which is recommended before using the tool +.It Fl E | Fl F | Fl G | Fl P | Fl i | Fl w +Modifies how +.Ar pattern +is matched. See +.Xr git-grep 1 +for more info .El .It Nm xlog Ar pkg .Nd open commit log for XBPS template |