MCPcopy Index your code
hub / github.com/encounter/objdiff / build_watch_patterns

Method build_watch_patterns

objdiff-core/src/config/mod.rs:67–76  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

65 }
66
67 pub fn build_watch_patterns(&self) -> Result<Vec<Glob>, globset::Error> {
68 Ok(if let Some(watch_patterns) = &self.watch_patterns {
69 watch_patterns
70 .iter()
71 .map(|s| Glob::new(s))
72 .collect::<Result<Vec<Glob>, globset::Error>>()?
73 } else {
74 default_watch_patterns()
75 })
76 }
77
78 pub fn build_ignore_patterns(&self) -> Result<Vec<Glob>, globset::Error> {
79 Ok(if let Some(ignore_patterns) = &self.ignore_patterns {

Callers 1

run_interactiveFunction · 0.80

Calls 1

default_watch_patternsFunction · 0.85

Tested by

no test coverage detected