diff options
author | Thomas Voss <thomas.voss@humanwave.nl> | 2024-01-24 12:51:49 +0100 |
---|---|---|
committer | Thomas Voss <thomas.voss@humanwave.nl> | 2024-01-24 12:53:11 +0100 |
commit | aa9f12ff8ea3fe215ef0a819cdd193e3088d9b86 (patch) | |
tree | 34650541f41f67b63c1a1f3f327ddd6792b83208 /man/grab.1 | |
parent | 1547077f958bec62f64674ac7c83e8f7f89b0cc9 (diff) |
Find files via git-grep instead of git-ls-files
It would be preferable to use git-ls-files as it is more suited for our
purposes, however git-grep allows us to filter out binary files. It
makes no sense to regex match in a binary file, so this is crucial.
Diffstat (limited to 'man/grab.1')
-rw-r--r-- | man/grab.1 | 15 |
1 files changed, 6 insertions, 9 deletions
@@ -1,4 +1,4 @@ -.Dd 23 January, 2024 +.Dd 24 January, 2024 .Dt GRAB 1 .Os Grab 2.1.1 .Sh NAME @@ -46,14 +46,11 @@ utility in all ways except for two exceptions. The first is that if no files .Pq globs in this case to be precise are specified, -input is not read from the standard-input but instead all files returned -by an invocation of -.Xr git\-ls\-files 1 -are processed. +input is not read from the standard-input but instead all non-binary +files found in the current git-repository are processed. If the user provides one or more globs, -only the files returned by -.Xr git\-ls\-files 1 -that match one or more of the given globs will be processed. +only the non-binary files in the current git-repository that match one or +more of the given globs will be processed. Secondly, the .Fl f option is not available; @@ -315,7 +312,7 @@ formatted manual pages: .Pp .Dl $ grab \-n 'x/^\e.Sh SYNOPSIS\en(^.*\en(?!^\e.Sh))+/' foo.1 bar.1 .Sh SEE ALSO -.Xr git\-ls\-files 1 , +.Xr git 1 , .Xr grep 1 , .Xr pcre2syntax 3 , .Xr regex 7 |