Set the path prefix filter. Only files under this prefix will be processed. # Arguments `prefix` - Path prefix (e.g., "src/", "tests/") # Example ```rust use atomic_core::record::workflow::WorkflowOptions; let opts = WorkflowOptions::new().with_prefix("src/"); assert!(opts.matches_prefix("src/main.rs")); assert!(!opts.matches_prefix("tests/test.rs")); ```
(mut self, prefix: impl Into<String>)
| 207 | /// assert!(!opts.matches_prefix("tests/test.rs")); |
| 208 | /// ``` |
| 209 | pub fn with_prefix(mut self, prefix: impl Into<String>) -> Self { |
| 210 | self.prefix = prefix.into(); |
| 211 | self |
| 212 | } |
| 213 | |
| 214 | /// Set the maximum file size for diffing. |
| 215 | /// |
no outgoing calls