From 1b52948e42e612638131f376fee7415e08c4a38c Mon Sep 17 00:00:00 2001 From: Thayne McCombs Date: Tue, 10 Aug 2021 01:09:18 -0600 Subject: [PATCH] Add better documentation of vcs-ignore files. Explicitly list which files are used for gitignore. Fixes #354 --- doc/fd.1 | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/doc/fd.1 b/doc/fd.1 index 487ffd0..265e298 100644 --- a/doc/fd.1 +++ b/doc/fd.1 @@ -32,7 +32,7 @@ Include hidden files and directories in the search results .TP .B \-I, \-\-no\-ignore Show search results from files and directories that would otherwise be ignored by -.IR .gitignore , +any of the files ignored by the '\-\-no\-ignore\-vcs' option, .IR .ignore , .IR .fdignore , or the global ignore file. @@ -41,9 +41,15 @@ or the global ignore file. Alias for '--no-ignore'. Can be repeated; '-uu' is an alias for '--no-ignore --hidden'. .TP .B \-\-no\-ignore\-vcs -Show search results from files and directories that would otherwise be ignored by -.I .gitignore -files. +Show search results from files and directories that would otherwise be ignored by gitignore files +including +.IR .gitignore , +.IR .git/info/exclude , +and the global gitignore configuration ( +.I core.excludesFile +git setting, which defaults to +.I $HOME/.config/git/ignore +). .TP .B \-s, \-\-case\-sensitive Perform a case-sensitive search. By default, fd uses case-insensitive searches, unless the