MCPcopy Index your code
hub / github.com/emwalker/digraph / new

Method new

backend/src/git/index.rs:187–196  ·  view source on GitHub ↗
(filename: &PathBuf)

Source from the content-addressed store, hash-verified

185
186impl SynonymIndex {
187 pub fn new(filename: &PathBuf) -> Self {
188 Self::make(
189 filename.to_owned(),
190 SynonymIndexMap {
191 api_version: API_VERSION.to_owned(),
192 kind: "SynonymIndexMap".to_owned(),
193 synonyms: BTreeMap::new(),
194 },
195 )
196 }
197
198 pub fn load(filename: &PathBuf, view: &core::View) -> Result<Self> {
199 let index = if view.blob_exists(filename)? {

Callers

nothing calls this directly

Calls 2

dateMethod · 0.80
idMethod · 0.45

Tested by

no test coverage detected