1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2024-12-12 19:18:24 +02:00
ripgrep/crates/core/flags
Andrew Gallant 4a30819302
cli: tweak how "is one file" predicate works
In effect, we switch from `path.is_file()` to `!path.is_dir()`. In cases
where process substitution is used, for example, the path can actually
have type "fifo" instead of "file." Even if it's a fifo, we want to
treat it as-if it were a file. The real key here is that we basically
always want to consider a lone argument as a file so long as we know it
isn't a directory. Because a directory is the only thing that will
causes us to (potentially) search more than one thing.

Fixes #2736
2024-02-15 11:59:59 -05:00
..
complete complete/fish: improve shell completions for fish 2024-01-06 10:39:35 -05:00
doc release/doc: set date in man page 2023-11-26 14:10:07 -05:00
config.rs cli: replace clap with lexopt and supporting code 2023-11-20 23:51:53 -05:00
defs.rs doc: fix typo in --hidden docs 2024-01-22 13:31:11 -05:00
hiargs.rs cli: tweak how "is one file" predicate works 2024-02-15 11:59:59 -05:00
lowargs.rs cli: replace clap with lexopt and supporting code 2023-11-20 23:51:53 -05:00
mod.rs complete/fish: improve shell completions for fish 2024-01-06 10:39:35 -05:00
parse.rs cli: add simple flag suggestions 2023-11-26 09:55:44 -05:00