MCPcopy Index your code
hub / github.com/AI45Lab/Code / log

Method log

core/src/workspace/local.rs:316–329  ·  view source on GitHub ↗
(&self, max_count: usize)

Source from the content-addressed store, hash-verified

314 }
315
316 async fn log(&self, max_count: usize) -> Result<Vec<WorkspaceGitCommit>> {
317 self.run_blocking_git(move |root| {
318 Ok(crate::git::get_log(&root, max_count)?
319 .into_iter()
320 .map(|commit| WorkspaceGitCommit {
321 id: commit.id,
322 message: commit.message,
323 author: commit.author,
324 date: commit.date,
325 })
326 .collect())
327 })
328 .await
329 }
330
331 async fn list_branches(&self) -> Result<Vec<WorkspaceGitBranch>> {
332 self.run_blocking_git(|root| {

Callers

nothing calls this directly

Calls 2

get_logFunction · 0.85
run_blocking_gitMethod · 0.80

Tested by

no test coverage detected