Commit Graph

1891 Commits

Author SHA1 Message Date
Thayne McCombs a86e16baa8 docs: Add policy for comments
Specify that comments on PRs should be written by humans
2026-04-23 01:07:42 -06:00
Thayne McCombs 0a3a485bd7 Merge pull request #1967 from tmccombs/pr-expectations
docs: Add PR Expectations
2026-04-23 00:58:15 -06:00
Thayne McCombs 4e2c81277a Merge pull request #1975 from SAY-5/fix/pattern-path-separator-v2
fix: flag any pattern containing a path separator, not just ones naming a directory
2026-04-23 00:36:23 -06:00
SAY-5 de422afd0b tests: gate forward-slash+full-path test off Windows
Signed-off-by: SAY-5 <SAY-5@users.noreply.github.com>

On Windows the regex-over-full-path match uses `\`, so the
pattern `one/two/c` cannot match a real entry. The diagnostic-
didn't-fire behaviour this test pins is already covered by the
fact that the invocation does not error. Gate it to non-Windows
per tmccombs's CI feedback on the PR.
2026-04-21 00:58:09 -07:00
Thayne McCombs 4f4900b197 test: Fix included files
Fix test_pattern_with_forward_slash_allowed_with_full_path to include
all expected search results.
2026-04-21 01:08:17 -06:00
Thayne McCombs 0e74d5b75d Merge pull request #1979 from YoshKoz/fix/pwsh-placeholder-docs
docs: document PowerShell placeholder quoting requirement
2026-04-20 20:19:56 -06:00
SAY-5 ed47664191 fix: flag any pattern containing a path separator, not just ones that name a directory
Without --full-path, fd matches patterns against file names, so any pattern
containing a path separator can never match. The previous implementation
in main.rs fired the path-separator diagnostic only when the pattern also
named an existing directory on disk, so the most common Linux/macOS typo
- pasting a full path as the pattern - silently returned zero matches.

Restructure ensure_search_pattern_is_not_a_path so that any '/' in the
pattern triggers the diagnostic unconditionally, and keep the existing
'directory must exist on disk' guard only for the native '\' separator
on Windows, which is also the regex escape character. The Windows check
is short-circuited via '||' so the is_dir syscall never runs when the
pattern already contains '/'. The #[cfg_attr(not(windows), allow(unused_mut))]
attribute keeps the mut binding warning-free on non-Windows targets.

Update the error message to drop the now-ambiguous parenthetical that
showed the platform-specific separator character, and widen the
integration test assertions to cover the full first line so the
assert_failure_with_error helper (which trims lines on both sides) cannot
early-accept on a partial prefix.

Closes #1873

Signed-off-by: SAY-5 <SAY-5@users.noreply.github.com>
2026-04-20 18:18:21 -07:00
Yoshi Tacke c7f4f19ffb docs: address review feedback
Drop CHANGELOG entry for docs-only change. Simplify placeholder
note to be shell-agnostic per reviewer request.
2026-04-20 20:11:02 +02:00
Yoshi Tacke d45c99b807 docs: document PowerShell placeholder quoting requirement
Closes #735
2026-04-20 10:24:33 +02:00
Thayne McCombs 90e73d72df Merge pull request #1959 from tmchow/osc/1958-ignore-parent
feat: add --ignore-parent option to override --no-ignore-parent
2026-04-16 13:03:00 -06:00
Thayne McCombs 749ea313f6 docs: Add PR Expectations
Add expectations for making pull requests to CONTRIBUTING.md

My main objective is to try to discourage low-effort AI generated pull
requests. But I realized several of the guidelines were actually more
general, so made the section as a whole more general.
2026-04-14 00:52:15 -06:00
Trevin Chow 72ff3cf694 feat: add --ignore-parent option to override --no-ignore-parent
Add the --ignore-parent flag, mirroring the existing pattern where
--ignore-vcs overrides --no-ignore-vcs. This lets users undo
--no-ignore-parent in aliases or config files.

Closes #1958
2026-04-06 00:53:39 -07:00
Thayne McCombs a665a3bba9 Merge pull request #1953 from Rohan5commit/docs-macos-comment-20260404
docs: fix macOS spelling in BSD ls comment
2026-04-03 23:44:14 -06:00
Codex 078f5d184e docs: fix macOS spelling in BSD ls comment 2026-04-04 10:14:25 +08:00
Thayne McCombs 607ae385f6 Merge pull request #1950 from sharkdp/dependabot/cargo/tempfile-3.27.0
build(deps): bump tempfile from 3.26.0 to 3.27.0
2026-04-03 00:45:52 -06:00
Thayne McCombs 866ba9bfd5 Merge pull request #1951 from sharkdp/dependabot/cargo/clap_complete-4.6.0
build(deps): bump clap_complete from 4.5.66 to 4.6.0
2026-04-02 01:24:27 -06:00
Thayne McCombs 2f6a2a88c5 Merge pull request #1952 from sharkdp/dependabot/cargo/clap-4.6.0
build(deps): bump clap from 4.5.60 to 4.6.0
2026-04-02 01:23:58 -06:00
dependabot[bot] 5c4654acb6 build(deps): bump clap from 4.5.60 to 4.6.0
Bumps [clap](https://github.com/clap-rs/clap) from 4.5.60 to 4.6.0.
- [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.5.60...clap_complete-v4.6.0)

---
updated-dependencies:
- dependency-name: clap
  dependency-version: 4.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-01 22:28:21 +00:00
dependabot[bot] c327231e36 build(deps): bump clap_complete from 4.5.66 to 4.6.0
Bumps [clap_complete](https://github.com/clap-rs/clap) from 4.5.66 to 4.6.0.
- [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.5.66...clap_complete-v4.6.0)

---
updated-dependencies:
- dependency-name: clap_complete
  dependency-version: 4.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-01 22:28:16 +00:00
dependabot[bot] 246f5b5e66 build(deps): bump tempfile from 3.26.0 to 3.27.0
Bumps [tempfile](https://github.com/Stebalien/tempfile) from 3.26.0 to 3.27.0.
- [Changelog](https://github.com/Stebalien/tempfile/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Stebalien/tempfile/compare/v3.26.0...v3.27.0)

---
updated-dependencies:
- dependency-name: tempfile
  dependency-version: 3.27.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-01 22:28:11 +00:00
David Peter 7cf8c85113 Update README 2026-03-31 09:06:11 +02:00
Tavian Barnes fdb5534f66 Merge pull request #1946 from tmccombs/runner-os-update
chore: Update os matrix
2026-03-28 12:30:12 -04:00
Thayne McCombs 1b66ab5d7a chore: Update os matrix
Update the versions of Windows and Mac OSes used in build matrix.

Also add back intel Mac since on the latest version that is still
supported until 2027.

Fixes: #1945
Fixes: #1918
2026-03-28 00:57:39 -06:00
Thayne McCombs 8a7ff7d438 Merge pull request #1941 from tmccombs/fix-attest
Fix attest
2026-03-25 01:08:18 -06:00
Thayne McCombs 45646e2eaf fix(ci): Remove unnecessary compression
Don't compress something that is already compressed.
2026-03-25 00:45:23 -06:00
Thayne McCombs 5008de5052 fix: correct attestation subjects
Use the original files as the source, rather than the file that is
uploaded to the artifact, as that is actually a zip file (what?)

Fixes: #1936
2026-03-25 00:45:23 -06:00
Tavian Barnes d6b44b81b6 Merge pull request #1928 from tmccombs/full-path-fixes
Full path fixes
2026-03-24 06:45:07 -04:00
Thayne McCombs 9d137d358d Merge pull request #1940 from sharkdp/dependabot/github_actions/softprops/action-gh-release-2.6.1
build(deps): bump softprops/action-gh-release from 2.5.0 to 2.6.1
2026-03-23 14:08:37 -07:00
dependabot[bot] 1d386abc84 build(deps): bump softprops/action-gh-release from 2.5.0 to 2.6.1
Bumps [softprops/action-gh-release](https://github.com/softprops/action-gh-release) from 2.5.0 to 2.6.1.
- [Release notes](https://github.com/softprops/action-gh-release/releases)
- [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md)
- [Commits](https://github.com/softprops/action-gh-release/compare/a06a81a03ee405af7f2048a818ed3f03bbf83c7b...153bb8e04406b158c6c84fc1615b65b24149a1fe)

---
updated-dependencies:
- dependency-name: softprops/action-gh-release
  dependency-version: 2.6.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-23 18:04:35 +00:00
Thayne McCombs 0336452b96 Merge pull request #1934 from Rohan5commit/docs/fix-contributing-intro-20260319
Fix CONTRIBUTING introduction grammar
2026-03-18 22:21:52 -07:00
rohan436 f8baea833f docs: fix CONTRIBUTING grammar 2026-03-19 09:41:50 +08:00
Thayne McCombs dc9c503c7d refactor: Rename cwd as full_path_base
Because I think it makes it's intention more clear.
2026-03-17 00:53:34 -06:00
Thayne McCombs cd4fd03fa0 refactor: Avoid unnecessary allocation
Use Cow::borrowed, if we can re-use the already absolute path.
2026-03-17 00:53:34 -06:00
Thayne McCombs fcd846651b Merge pull request #1921 from rexkirshner/fix-exclude-value-name-glob
Change --exclude value name from 'pattern' to 'glob'
2026-03-17 00:17:24 -06:00
Thayne McCombs 6d77799759 Merge pull request #1917 from Xavrir/issue-1900
fix: handle invalid working directories gracefully with --full-path
2026-03-16 02:36:16 -06:00
Thayne McCombs db7d448fd4 Merge pull request #1924 from liruiluo/docs/clarify-exec-arg-boundary
docs: clarify how --exec consumes positional arguments
2026-03-13 20:41:09 -06:00
liruiluo 2278836060 docs: clarify --exec positional argument handling 2026-03-14 09:16:22 +08:00
Rex Kirshner 37f3c2e6cb Change --exclude value name from "pattern" to "glob"
The summary line `-E, --exclude <pattern>` is misleading because fd
defaults to regex for its main search pattern, but --exclude takes a
glob. Rename the value placeholder to "glob" in the CLI help, man page,
and README to match the actual behavior.

Fixes #1724

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 09:03:56 -07:00
Rizky Mirzaviandy Priambodo 807aa11d03 chore: remove unrelated planning files 2026-03-11 22:11:40 +07:00
Rizky Mirzaviandy Priambodo 647ced8ff0 fix: address review comments - use into_os_string() and move changelog to unreleased section 2026-03-11 22:11:26 +07:00
Rizky Mirzaviandy Priambodo 26756f21fa refactor: cache cwd at startup instead of per-entry resolution
Instead of calling current_dir() for every entry when --full-path is
set, cache it once in Config at startup. This eliminates the need for
FatalError handling and makes path resolution infallible during the
walk. If the cwd can't be retrieved, fd now fails early with a clear
error message.
2026-03-10 20:34:38 +07:00
Rizky Mirzaviandy Priambodo 24f7f2b9ef ci: retrigger workflow for second validation pass 2026-03-10 20:28:12 +07:00
Rizky Mirzaviandy Priambodo d3a500af7a fix: handle invalid working directories gracefully with --full-path (#1900)
- Add FatalError variant to WorkerResult for unrecoverable errors
- Extract search_str_for_entry() helper to propagate IO errors from path_absolute_form
- Propagate fatal errors through job and batch execution paths
- Add regression test for invalid cwd scenario
- Update CHANGELOG for #1900
2026-03-10 20:28:12 +07:00
Thayne McCombs 7027d45303 Merge pull request #1916 from tmccombs/release-v10.4.2
chore: Bump to 10.4.2
v10.4.2
2026-03-10 01:32:25 -06:00
Thayne McCombs bf6489a79b chore: Bump to 10.4.2 2026-03-09 01:56:38 -06:00
Thayne McCombs cb3fad48bb Merge pull request #1914 from tmccombs/faster-ignore-contains
perf: Avoid unnecessary syscall for ignore-contain
2026-03-08 19:44:38 -06:00
Thayne McCombs a4d86cc1f5 perf: Avoid unnecessary syscall for ignore-contain
Instead of calling `is_dir` on the path, call it on the file_type of the
DirEntry, since we should already have that information without needing
to do another syscall.

Fixes: #1913
2026-03-08 17:09:39 -06:00
Tavian Barnes b691572928 Merge pull request #1912 from tmccombs/changelog-bump
Add upcoming to changelog
2026-03-08 07:58:54 -04:00
Thayne McCombs ec25d2bc81 Add upcoming to changelog 2026-03-08 03:09:13 -06:00
Thayne McCombs 4ea110d8dd Merge pull request #1911 from tmccombs/release-10.4.1
Prepare 10.4.1 release
v10.4.1
2026-03-08 01:38:40 -07:00