Commit Graph

99 Commits

Author SHA1 Message Date
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
Thayne McCombs 27013537c9 Fix logic for when to read global ignore file
Fixes #1209
2022-12-17 00:28:47 -07:00
Thayne McCombs 1964e434e6 Add Upcoming release to changelog 2022-12-09 00:19:22 -07:00
Thayne McCombs d5bca085dd Updates for 8.6.0 2022-12-08 23:41:24 -07:00
David Peter 781bd4bcf2 Add CHANGELOG entry 2022-11-21 21:08:39 +01:00
Thayne McCombs 317a0c3cd3 Add entry for changed-after alias to CHANGELOG 2022-11-20 23:23:32 -07:00
Thayne McCombs 64e642403e Use file_stem instead of file_name for command for completions
Fixes: #1177
2022-11-17 22:22:02 -07:00
David Peter 5c87ff524e Fix CHANGELOG 2022-11-15 14:15:19 +01:00
Ptipiak 88bebb8aac Using faccess lib to detect executable files
* The detection of executable files was not exactly the same as
the original find
2022-11-15 10:31:44 +01:00
Thayne McCombs 41d775bedd Updates for fd 8.5.3 2022-11-13 23:23:04 -07:00
David Peter 56c405d8e6 Updates for fd 8.5.2 2022-11-03 09:13:15 +01:00
David Peter 567ce2640f Update CHANGELOG 2022-11-02 13:48:18 +01:00
David Peter 527fe9e262 Updates for fd 8.5.1 2022-11-02 13:46:20 +01:00
David Peter c85929045e Update CHANGELOG 2022-11-01 21:36:56 +01:00
David Peter f8e832f212 Preparation for v8.5 2022-11-01 20:55:25 +01:00
David Peter bc94fcc90f Update CHANGELOG 2022-11-01 20:45:16 +01:00
David Peter c6f9595a02 Update CHANGELOG 2022-11-01 19:57:11 +01:00
Tavian Barnes 17d849df6c Compute colors in parallel 2022-10-31 22:23:30 +01:00
Tavian Barnes f0c50befce Add a changelog entry 2022-10-31 22:23:30 +01:00
Tavian Barnes 0984ed91ea Update CHANGELOG for -x/-X leading ./ change 2022-10-03 21:35:39 +02:00
David Peter 4f1bcfedf3 Update CHANGELOG 2022-09-27 21:25:10 +02:00
David Peter bd44c82404 Add CHANGELOG entry 2022-09-11 21:05:06 +02:00
David Peter c48586de08 Add CHANGELOG entry 2022-09-11 20:58:50 +02:00
Tavian Barnes cbc6ddeefc Implement --type executable on Windows
Fixes #1051.
2022-09-11 20:46:19 +02:00
Sijmen a5f69579cf Update CHANGELOG 2022-08-10 20:01:21 +02:00
David Peter 33beb7fc64 Bump version 2022-05-29 11:21:45 +02:00
David Peter 8b96a1e99c Update documentation of --batch-size feature 2022-05-28 22:59:46 +02:00
David Peter f52dec11a4 Update CHANGELOG 2022-05-28 22:50:04 +02:00
David Peter 41affe18c4 Merge remote-tracking branch 'origin/master' into yyogo/master 2022-05-15 16:31:06 +02:00
David Peter dcde6d358f Add CHANGELOG entry for multi exec 2022-05-15 16:26:44 +02:00
Jackson Theel f823eac672 Update CHANGELOG.md 2022-05-15 16:22:24 +02:00
ethsol bbd8c78861 Added installation instructions for RHEL8 2022-04-02 20:55:08 +02:00
ethsol 9d93807512 modification skeleton 2022-04-02 20:55:08 +02:00
Thayne McCombs 50c0fa812f
Merge branch 'master' into master 2022-03-15 01:20:35 -06:00
David Peter c48d02e0a9 Bump version to v8.3.2 2022-01-29 16:49:09 +01:00
David Peter ec38e23d58 Add CHANGELOG entry 2022-01-07 17:39:24 +01:00
David Peter 72895675ef Bump version to v8.3.1 2022-01-06 14:20:02 +01:00
David Peter aa1c0250b7 Update CHANGELOG 2022-01-06 13:59:04 +01:00
Thayne McCombs dade9736ac Add entry to changelog for no-ignore-vcs fix
I forgot to add it when I made the PR.

See commit 8bdbbd8e0cbe8ba010ce5c7f863e23af44386741
2021-12-28 14:20:25 +01:00
Jonathan Goren 22dbed0545 convert to path instead of cloning in batch exec
update changelog
2021-12-11 15:43:53 +02:00
Jonathan Goren a26bd3232c append trailing slash to folders
update changelog
2021-12-11 15:43:23 +02:00
David Peter 5d06491370 Update CHANGELOG for v8.3 2021-11-26 22:18:50 +01:00
Thayne McCombs 7b7876e701 Add entry for buffering to CHANGELOG 2021-11-26 21:23:47 +01:00
David Peter 92bd7850d0 Merge remote-tracking branch 'origin/master' into no-strip/760 2021-11-26 18:19:28 +01:00
David Peter 06c58b99f5 Update CHANGELOG 2021-11-26 17:58:18 +01:00
Jacob Mischka f32060b0de Change time comparisons to exclusive
Closes #794
2021-11-17 23:38:28 +01:00
David Peter ecdaf58e7f Update to latest lscolors dependency 2021-11-14 18:29:59 +01:00
David Peter fc2a972082 Add CHANGELOG entry 2021-11-14 17:42:16 +01:00
David Peter cdc6a37ed6 Merge remote-tracking branch 'origin/master' into pr/opposing-options 2021-11-14 16:47:53 +01:00
Devon Hollowood 17dd2a6dfe
Implement `--batch-size` (#866) 2021-10-22 00:05:13 -06:00