(&self, max_count: usize)
| 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| { |
nothing calls this directly
no test coverage detected