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

Method finalize

backend/src/git/ext.rs:104–126  ·  view source on GitHub ↗
(self, context: RepoId)

Source from the content-addressed store, hash-verified

102 }
103
104 pub fn finalize(self, context: RepoId) -> Result<Object> {
105 match self {
106 Self::Topic { key, map } => {
107 let (details, display_topic) = map.topic_details(context)?;
108 Ok(Object::Topic(Topic {
109 key,
110 display_topic,
111 repo_topics: details,
112 _map: map,
113 }))
114 }
115
116 Self::Link { key, map } => {
117 let (details, display_link) = map.link_details(context)?;
118 Ok(Object::Link(Link {
119 key,
120 display_link,
121 repo_links: details,
122 _map: map,
123 }))
124 }
125 }
126 }
127}
128
129#[derive(Clone, Default)]

Callers 3

fetch_matchesMethod · 0.80
fetch_downsetMethod · 0.80
loadMethod · 0.80

Calls 6

ObjectsClass · 0.85
topic_detailsMethod · 0.80
link_detailsMethod · 0.80
insertMethod · 0.80
TopicClass · 0.70
LinkClass · 0.70

Tested by

no test coverage detected