MCPcopy Create free account
hub / github.com/emwalker/digraph / basename

Method basename

backend/src/git/index.rs:41–43  ·  view source on GitHub ↗

Used to derive the filename for an index

(&self)

Source from the content-addressed store, hash-verified

39
40 // Used to derive the filename for an index
41 pub fn basename(&self) -> Option<String> {
42 self.0.get(0..2).map(|s| s.replace([' '], "+"))
43 }
44
45 pub fn starts_with(&self, pat: &str) -> bool {
46 self.0.starts_with(pat)

Callers 1

index_keyMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected