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

Method strip

minecommit/src/handler/mod.rs:55–58  ·  view source on GitHub ↗
(&self, key: &'a str)

Source from the content-addressed store, hash-verified

53 }
54
55 fn strip<'a>(&self, key: &'a str) -> Result<&'a str> {
56 key.strip_prefix(&format!("{}/", self.prefix))
57 .with_context(|| format!("storage key {key:?} missing workspace prefix {:?}", self.prefix))
58 }
59}
60
61impl<R: OdbReader> PrefixedReader<'_, R> {

Callers 1

globMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected