fd/src
Max 👨🏽‍💻 Coplan 08c0d427bf Add flag --no-require-git to always respect gitignore files
Summary: Currently, `--ignore-vcs` only serves to unset `--no-ignore-vcs`.
There is currently no way to tell fd to respect gitignore files when not in a
git repository.  This commit adds the flag `--no-require-git` to make fd always
respect all gitignore files.

This behaves the same as the `--no-require-git` option in [ripgrep](3bb71b0cb8/crates/core/app.rs (L2214-L2226))

This commit also contains an unrelated wording fix to CONTRIBUTING.md

Test Plan: `tests/tests.rs`

Background: I am using [Sapling](https://sapling-scm.com/docs/introduction/)
for working with git repositories (including this commit ☺️).  Since Sapling
uses `.sl` instead of `.git`, tools using the `ignore` crate (rg and fd) would show gitignored files.
I made a patch (ebf17eef22)
to `ignore` to respect gitignores with _either_ `.git` or `.sl`.  However,
@BurntSushi said he did not want to merge that patch and instead suggested I
use `--no-require-git` (https://github.com/BurntSushi/ripgrep/issues/2374).
This works fine, but I couldn't use this workaround for my other favorite tool!
That's what this patch is for 😁

(a follow-up patch will add a similar `FD_CONFIG_PATH` environment variable
like `RG_CONFIG_PATH`)
2023-01-13 13:52:34 -08:00
..
exec Fix some warnings from clippy 2022-11-08 01:09:06 -07:00
filter Remove time from transitive dependencies of chrono 2022-12-03 01:28:17 -07:00
cli.rs Add flag --no-require-git to always respect gitignore files 2023-01-13 13:52:34 -08:00
config.rs Add flag --no-require-git to always respect gitignore files 2023-01-13 13:52:34 -08:00
dir_entry.rs Compute colors in parallel 2022-10-31 22:23:30 +01:00
error.rs Proper error handling within walk.rs 2020-04-03 22:36:32 +02:00
exit_codes.rs Fix clippy suggestions 2022-09-11 21:29:43 +02:00
filesystem.rs Using faccess lib to detect executable files 2022-11-15 10:31:44 +01:00
filetypes.rs Using faccess lib to detect executable files 2022-11-15 10:31:44 +01:00
main.rs Add flag --no-require-git to always respect gitignore files 2023-01-13 13:52:34 -08:00
output.rs Use nu-ansi-term instead of ansi-term 2022-12-01 00:07:30 -07:00
regex_helper.rs Match against reference instead of value 2022-04-02 20:56:38 +02:00
walk.rs Add flag --no-require-git to always respect gitignore files 2023-01-13 13:52:34 -08:00