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

Method status

core/src/workspace/local.rs:302–314  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

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| {

Callers 11

postMethod · 0.45
post_streamingMethod · 0.45
classify_get_errorFunction · 0.45
map_put_errorFunction · 0.45
sse_listenerMethod · 0.45
requestMethod · 0.45
notifyMethod · 0.45
sse_listenerMethod · 0.45
requestMethod · 0.45
notifyMethod · 0.45

Calls 2

get_statusFunction · 0.85
run_blocking_gitMethod · 0.80

Tested by

no test coverage detected