From aa9f12ff8ea3fe215ef0a819cdd193e3088d9b86 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 24 Jan 2024 12:51:49 +0100 Subject: 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. --- man/grab.1 | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'man') diff --git a/man/grab.1 b/man/grab.1 index ec03068..a5e3a32 100644 --- a/man/grab.1 +++ b/man/grab.1 @@ -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 -- cgit v1.2.3