From f3e6536d59167656e243a5a9e40cf80312782abf Mon Sep 17 00:00:00 2001 From: John Purnell <39587+jpcirrus@users.noreply.github.com> Date: Sun, 26 Feb 2023 11:41:19 +1300 Subject: [PATCH] Add flag `--no-require-git` to man page #1216 omitted to add the flag to the man page. --- doc/fd.1 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/doc/fd.1 b/doc/fd.1 index 1f9b2fb..6df0ef0 100644 --- a/doc/fd.1 +++ b/doc/fd.1 @@ -71,6 +71,14 @@ git setting, which defaults to .IR $HOME/.config/git/ignore ). The flag can be overridden with '--ignore-vcs'. .TP +.B \-\-no\-require\-git +Do not require a git repository to respect gitignores. By default, fd will only +respect global gitignore rules, .gitignore rules and local exclude rules if fd +detects that you are searching inside a git repository. This flag allows you to +relax this restriction such that fd will respect all git related ignore rules +regardless of whether you’re searching in a git repository or not. The flag can +be overridden with '--require-git'. +.TP .B \-\-no\-ignore\-parent Show search results from files and directories that would otherwise be ignored by gitignore files in parent directories.