(&self)
| 300 | } |
| 301 | |
| 302 | async fn status(&self) -> Result<WorkspaceGitStatus> { |
| 303 | self.run_blocking_git(|root| { |
| 304 | let status = crate::git::get_status(&root)?; |
| 305 | Ok(WorkspaceGitStatus { |
| 306 | branch: status.branch, |
| 307 | commit: status.commit, |
| 308 | is_worktree: status.is_worktree, |
| 309 | is_dirty: status.is_dirty, |
| 310 | dirty_count: status.dirty_count, |
| 311 | }) |
| 312 | }) |
| 313 | .await |
| 314 | } |
| 315 | |
| 316 | async fn log(&self, max_count: usize) -> Result<Vec<WorkspaceGitCommit>> { |
| 317 | self.run_blocking_git(move |root| { |
no test coverage detected