why does --type toml
includes results with .lock
?
#2537
-
Hi, I am trying to find all
Results :
if this is the expected behavior, how and where Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
It's because This is why the See: ripgrep/crates/ignore/src/default_types.rs Line 262 in a7f1276 |
Beta Was this translation helpful? Give feedback.
It's because
Cargo.lock
uses a TOML format. The file type filter is meant to be a model of what the underlying file actually is, and not necessarily an abbreviation for a specific extension. For example, thec
type includes both*.c
and*.h
. They are both C files.This is why the
toml
type usesCargo.lock
spelled out specifically and not*.lock
, since not alllock
files use the TOML format.See:
ripgrep/crates/ignore/src/default_types.rs
Line 262 in a7f1276