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

Method fetch_activity_log

backend/src/git/client.rs:217–230  ·  view source on GitHub ↗
(
        &self,
        repo_id: RepoId,
        id: &ExternalId,
        index_mode: IndexMode,
    )

Source from the content-addressed store, hash-verified

215 }
216
217 pub fn fetch_activity_log(
218 &self,
219 repo_id: RepoId,
220 id: &ExternalId,
221 index_mode: IndexMode,
222 ) -> Result<ActivityIndex> {
223 let filename = id.activity_log_filename()?;
224 let view = self.view(repo_id)?;
225 match index_mode {
226 IndexMode::Replace => Ok(ActivityIndex::new(&filename)),
227 IndexMode::ReadOnly => ActivityIndex::load(&filename, &view),
228 IndexMode::Update => ActivityIndex::load(&filename, &view),
229 }
230 }
231
232 pub fn fetch_link(&self, repo_id: RepoId, link_id: &ExternalId) -> Option<RepoLink> {
233 match &self.fetch(repo_id, link_id)? {

Callers 3

id_activityMethod · 0.80
fetch_activityMethod · 0.80
activity_logMethod · 0.80

Calls 2

activity_log_filenameMethod · 0.80
viewMethod · 0.45

Tested by

no test coverage detected