]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
grepc, grepc.1: Remove -tu from the defaults
authorAlejandro Colomar <alx.manpages@gmail.com>
Sat, 21 May 2022 22:29:44 +0000 (00:29 +0200)
committerAlejandro Colomar <alx@kernel.org>
Wed, 29 Oct 2025 20:29:05 +0000 (21:29 +0100)
Normally, one either wants to see a declaration/definition, or its
uses, but not both at the same time.  Also, there are usually many
more use sites than than definitions, and therefore definitions
are shadowed between all the noise.  Restrict the default to
declarations and definitions, which in my experience seems to be
the most common use case.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
bin/grepc
share/man/man1/grepc.1

index 7b7aa61a78f42071dfbc34716f4cb6fbefc89181..7bfbadf108b4771f8fdbc54a224e28fc104cc28d 100755 (executable)
--- a/bin/grepc
+++ b/bin/grepc
@@ -428,7 +428,6 @@ grepc_search_default()
        grepc_func "$1";
        grepc_macro "$1";
        grepc_type "$1";
-       grepc_use "$1";
 }
 
 
index e2d2279353d97f7349c4f431ae7ad8388e5ab42f..9508f681f7522c54a17554ed0358401122fbef5b 100644 (file)
@@ -8,7 +8,7 @@ grepc \- find C declarations, definitions, and uses in source code
 .RI [ file\~ .\|.\|.]
 .SH DESCRIPTION
 .MR grepc 1
-searches for C declarations, definitions, and uses of
+searches for C declarations, definitions, and/or uses of
 .I pattern
 in each
 .IR file .
@@ -132,7 +132,7 @@ of code (see Types of code under DESCRIPTION).
 This option can be passed multiple times
 to search for various types of code.
 Default:
-.BR "e f m t u" .
+.BR "e f m t" .
 .TP
 .BI \-x " extension"
 Restrict the search to files ending with