MCPcopy Index your code
hub / github.com/HairlessVillager/minecommit / unflatten

Method unflatten

minecommit/src/handler/raw.rs:39–52  ·  view source on GitHub ↗
(self, save: &mut impl OdbWriter, storage: &impl OdbReader)

Source from the content-addressed store, hash-verified

37 }
38
39 fn unflatten(self, save: &mut impl OdbWriter, storage: &impl OdbReader) -> Result<Vec<String>> {
40 let mut processed = Vec::new();
41 let builtin = RAW_GLOB_PATTERNS.iter().copied();
42 let extra = self.extra_patterns.iter().map(|s| s.as_str());
43 for pattern in builtin.chain(extra) {
44 for key in storage.glob(pattern)? {
45 log::info!("Process raw file {key}");
46 let data = storage.get(&key)?;
47 save.put(&key, &data)?;
48 processed.push(key);
49 }
50 }
51 Ok(processed)
52 }
53}

Callers

nothing calls this directly

Calls 3

globMethod · 0.45
getMethod · 0.45
putMethod · 0.45

Tested by

no test coverage detected