Skip to content

Ignore empty path inputs - #589

Merged
bootandy merged 1 commit into
bootandy:masterfrom
giri256:fix/ignore-empty-path-inputs
Aug 10, 2026
Merged

bootandy merged 1 commit into
bootandy:masterfrom
giri256:fix/ignore-empty-path-inputs

Conversation

@giri256

@giri256 giri256 commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Fixes #585.

Empty target entries are now removed after paths are collected from direct arguments, --files-from, or --files0-from. The filter checks only for zero-length strings, so non-empty paths containing whitespace are preserved unchanged.

Added regressions for:

  • blank lines in newline-delimited stdin input;
  • explicit empty path arguments between valid paths.

Validation:

  • cargo test
  • cargo fmt --check
  • git diff --check

cargo clippy --all-targets -- -D warnings remains blocked by pre-existing warnings in untouched files (tests/test_exact_output.rs, the existing header in tests/test_flags.rs, and src/config.rs).

Signed-off-by: Giridhar <80974392+giri256@users.noreply.github.com>
@bootandy
bootandy merged commit 35e67c6 into bootandy:master Aug 10, 2026
13 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Empty path entries discard all other input paths

2 participants