MCPcopy Create free account
hub / github.com/AI45Lab/Code / log

Method log

core/src/workspace/remote_git.rs:531–544  ·  view source on GitHub ↗
(&self, max_count: usize)

Source from the content-addressed store, hash-verified

529 }
530
531 async fn log(&self, max_count: usize) -> Result<Vec<WorkspaceGitCommit>> {
532 let capped = max_count.min(self.max_log_entries);
533 let resp: LogResp = self.post_json("log", &LogReq { max_count: capped }).await?;
534 Ok(resp
535 .commits
536 .into_iter()
537 .map(|c| WorkspaceGitCommit {
538 id: c.id,
539 message: c.message,
540 author: c.author,
541 date: c.date,
542 })
543 .collect())
544 }
545
546 async fn list_branches(&self) -> Result<Vec<WorkspaceGitBranch>> {
547 let resp: BranchesResp = self.post_json("branches", &EmptyReq).await?;

Callers 1

Calls 1

post_jsonMethod · 0.80

Tested by

no test coverage detected