David Peter
af9daff4ee
Merge pull request #1216 from vegerot/pr1216
...
Add flag --no-require-git to always respect gitignore files
2023-01-17 14:37:14 +01:00
Thayne McCombs
503ede7535
Merge pull request #1212 from sharkdp/global-ignore-test
...
Add tests for global ignore file
2023-01-16 00:55:30 -07:00
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
ab7d5eff87
Merge pull request #1220 from sharkdp/dependabot/cargo/regex-syntax-0.6.28
...
Bump regex-syntax from 0.6.27 to 0.6.28
2023-01-01 23:59:16 -07:00
Thayne McCombs
686318c005
Merge pull request #1221 from sharkdp/dependabot/cargo/nix-0.25.0
...
Bump nix from 0.24.2 to 0.25.0
2023-01-01 11:04:58 -07:00
Thayne McCombs
c04ab74744
Merge pull request #1219 from sharkdp/dependabot/cargo/anyhow-1.0.68
...
Bump anyhow from 1.0.66 to 1.0.68
2023-01-01 10:50:37 -07:00
Thayne McCombs
8fdfc6c2ef
Merge pull request #1222 from sharkdp/dependabot/cargo/once_cell-1.17.0
...
Bump once_cell from 1.15.0 to 1.17.0
2023-01-01 10:50:06 -07:00
dependabot[bot]
71393fa1be
Bump regex-syntax from 0.6.27 to 0.6.28
...
Bumps [regex-syntax](https://github.com/rust-lang/regex ) from 0.6.27 to 0.6.28.
- [Release notes](https://github.com/rust-lang/regex/releases )
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/regex/commits )
---
updated-dependencies:
- dependency-name: regex-syntax
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-01-01 17:49:30 +00:00
Thayne McCombs
5e50825af2
Merge pull request #1223 from sharkdp/dependabot/cargo/num_cpus-1.15.0
...
Bump num_cpus from 1.13.1 to 1.15.0
2023-01-01 10:48:42 -07:00
dependabot[bot]
8fed650de9
Bump num_cpus from 1.13.1 to 1.15.0
...
Bumps [num_cpus](https://github.com/seanmonstar/num_cpus ) from 1.13.1 to 1.15.0.
- [Release notes](https://github.com/seanmonstar/num_cpus/releases )
- [Changelog](https://github.com/seanmonstar/num_cpus/blob/master/CHANGELOG.md )
- [Commits](https://github.com/seanmonstar/num_cpus/compare/v1.13.1...v1.15.0 )
---
updated-dependencies:
- dependency-name: num_cpus
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-01-01 17:01:46 +00:00
dependabot[bot]
4d8569ad6b
Bump once_cell from 1.15.0 to 1.17.0
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.15.0 to 1.17.0.
- [Release notes](https://github.com/matklad/once_cell/releases )
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.15.0...v1.17.0 )
---
updated-dependencies:
- dependency-name: once_cell
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-01-01 17:01:40 +00:00
dependabot[bot]
2f0677b556
Bump nix from 0.24.2 to 0.25.0
...
Bumps [nix](https://github.com/nix-rust/nix ) from 0.24.2 to 0.25.0.
- [Release notes](https://github.com/nix-rust/nix/releases )
- [Changelog](https://github.com/nix-rust/nix/blob/master/CHANGELOG.md )
- [Commits](https://github.com/nix-rust/nix/compare/v0.24.2...v0.25.0 )
---
updated-dependencies:
- dependency-name: nix
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-01-01 17:01:35 +00:00
dependabot[bot]
0a8a72d4f3
Bump anyhow from 1.0.66 to 1.0.68
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.66 to 1.0.68.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.66...1.0.68 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-01-01 17:01:23 +00:00
David Peter
de611c8835
Merge pull request #1217 from tmccombs/skip-executable-test-if-root
...
Skip an executable test if running as root
2022-12-29 14:16:01 +01:00
Thayne McCombs
a36f2cf61c
Skip an executable test if running as root
...
Fixes #1214
2022-12-28 23:28:41 -07:00
Thayne McCombs
b6c7ebc4f1
Don't test global ignore file on windows
...
Becase XDG_CONFIG_HOME doesn't work there.
2022-12-18 23:33:32 -07:00
Thayne McCombs
fd707b42c2
Add tests for global ignore file
2022-12-18 00:42:54 -07:00
Thayne McCombs
7c86c7d585
Merge pull request #1211 from tmccombs/fix-global-ignore
...
Fix logic for when to read global ignore file
2022-12-17 11:46:18 -07:00
Thayne McCombs
27013537c9
Fix logic for when to read global ignore file
...
Fixes #1209
2022-12-17 00:28:47 -07:00
David Peter
addf00cb16
Merge pull request #1206 from tmccombs/upstream-changes-pr
...
Add Upcoming release to changelog
2022-12-09 09:06:39 +01: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
8ecfdfee43
Merge pull request #1171 from tmccombs/clap-derive-comments
...
Use docstrings for long help in clap derive
2022-12-06 22:40:36 +01:00
Thayne McCombs
b7a2f68d59
Mention --changed-after alias in long help
2022-12-06 01:28:15 -07:00
Thayne McCombs
e98a6c6755
Use docstrings for long help in clap derive
2022-12-06 01:28:15 -07:00
David Peter
614e637dbc
Merge pull request #1200 from tmccombs/more-resilient-full-path-tests
...
Change full path tests to be more resilient
2022-12-05 09:55:36 +01:00
Thayne McCombs
7ec795cd57
Change full-path tests to work on windows as well
2022-12-03 22:30:32 -07:00
Tavian Barnes
8f510265fc
Merge pull request #1191 from sharkdp/chrono-without-time
...
Remove time from transitive dependencies of chrono
2022-12-03 09:57:44 -05:00
Thayne McCombs
39d80a59b6
Remove time from transitive dependencies of chrono
...
Because chrono was depending on an older version of time, and we don't
actually need it with recent versions of chrono.
Relates-To: #1188
Alernative-To: #1190
2022-12-03 01:28:17 -07:00
Tavian Barnes
6e3eb26af3
Merge pull request #1192 from tmccombs/ansi-term-deprecated
...
Use nu-ansi-term instead of ansi-term
2022-12-02 09:07:43 -05:00
Thayne McCombs
4a66d8fcd8
Merge pull request #1195 from sharkdp/dependabot/cargo/clap_complete-4.0.6
...
Bump clap_complete from 4.0.5 to 4.0.6
2022-12-01 23:58:17 -07:00
Thayne McCombs
daa986ea35
Merge pull request #1196 from sharkdp/dependabot/cargo/libc-0.2.137
...
Bump libc from 0.2.136 to 0.2.137
2022-12-01 23:56:15 -07:00
Thayne McCombs
0a575763a1
Change full path tests to be more resilient
...
Use patterns that won't conflict with randomly generated portion of
temporary directory
Fixes : #1181
2022-12-01 22:02:19 -07:00
dependabot[bot]
547d08c1ef
Bump libc from 0.2.136 to 0.2.137
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.136 to 0.2.137.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.136...0.2.137 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-12-02 04:57:40 +00:00
Thayne McCombs
bbd66b3240
Merge pull request #1199 from sharkdp/dependabot/cargo/regex-1.7.0
...
Bump regex from 1.6.0 to 1.7.0
2022-12-01 21:53:19 -07:00
dependabot[bot]
2ddc2f6c18
Bump regex from 1.6.0 to 1.7.0
...
Bumps [regex](https://github.com/rust-lang/regex ) from 1.6.0 to 1.7.0.
- [Release notes](https://github.com/rust-lang/regex/releases )
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/regex/compare/1.6.0...1.7.0 )
---
updated-dependencies:
- dependency-name: regex
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-12-01 17:02:43 +00:00
dependabot[bot]
58a9dde73f
Bump clap_complete from 4.0.5 to 4.0.6
...
Bumps [clap_complete](https://github.com/clap-rs/clap ) from 4.0.5 to 4.0.6.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.0.5...clap_complete-v4.0.6 )
---
updated-dependencies:
- dependency-name: clap_complete
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-12-01 17:01:56 +00:00
Thayne McCombs
d441516c9d
Use nu-ansi-term instead of ansi-term
...
Because ansi-term is no longer maintained.
Relates-To: #1188
2022-12-01 00:07:30 -07:00
Thayne McCombs
d991beb942
Merge pull request #1189 from tmccombs/tempfile
...
Use tempfile instead of tempdir
2022-11-30 23:43:38 -07:00
Thayne McCombs
650a511fa4
Use tempfile instead of tempdir
...
Because tempdir is no longer maintained, because it has been combined
with the tempfile crate.
Relates-To: #1188
2022-11-30 02:26:16 -07:00
Thayne McCombs
2aa966cb3c
Merge pull request #1183 from Ptipiak/integration-test-files-permission
...
Adding a simple test for executable files
2022-11-28 22:14:08 -07:00
Ptipiak
cd5fad3cf3
Adding a simple test for executable files
2022-11-26 10:09:40 +01:00
David Peter
c9d3968475
Merge pull request #1139 from Uthar/master
...
add support for matching multiple patterns
2022-11-21 21:19:08 +01:00
David Peter
36e60223eb
Use allow_hyphen_values = true for --and <pattern>
2022-11-21 21:08:41 +01:00
David Peter
781bd4bcf2
Add CHANGELOG entry
2022-11-21 21:08:39 +01:00
David Peter
0d9926de40
Move --and option up to other patter-related options
2022-11-21 21:06:48 +01:00
David Peter
e147ba901b
Minor fixes in help text
2022-11-21 21:06:48 +01:00
Kasper Gałkowski
7e26925933
Added the --and flag for matching multiple patterns
2022-11-21 21:06:48 +01:00
David Peter
8dda499830
Merge pull request #1176 from tmccombs/changed-after
...
Add --changed-after alias.
2022-11-21 08:36:43 +01:00
Thayne McCombs
317a0c3cd3
Add entry for changed-after alias to CHANGELOG
2022-11-20 23:23:32 -07:00