MCPcopy Create free account
hub / github.com/HairlessVillager/minecommit / flatten

Method flatten

minecommit/src/handler/ignore.rs:15–24  ·  view source on GitHub ↗
(self, save: &impl OdbReader, _storage: &mut impl OdbWriter)

Source from the content-addressed store, hash-verified

13 }
14
15 fn flatten(self, save: &impl OdbReader, _storage: &mut impl OdbWriter) -> Result<Vec<String>> {
16 let mut processed = Vec::new();
17 for pattern in &self.ignore_patterns {
18 for key in save.glob(pattern)? {
19 log::info!("Ignore file {key}");
20 processed.push(key);
21 }
22 }
23 Ok(processed)
24 }
25
26 fn unflatten(
27 self,

Callers

nothing calls this directly

Calls 1

globMethod · 0.45

Tested by

no test coverage detected