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

Method status

core/src/workspace/remote_git.rs:520–529  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

518 }
519
520 async fn status(&self) -> Result<WorkspaceGitStatus> {
521 let resp: StatusResp = self.post_json("status", &EmptyReq).await?;
522 Ok(WorkspaceGitStatus {
523 branch: resp.branch,
524 commit: resp.commit,
525 is_worktree: resp.is_worktree,
526 is_dirty: resp.is_dirty,
527 dirty_count: resp.dirty_count,
528 })
529 }
530
531 async fn log(&self, max_count: usize) -> Result<Vec<WorkspaceGitCommit>> {
532 let capped = max_count.min(self.max_log_entries);

Callers 8

post_jsonMethod · 0.45
post_unitMethod · 0.45
post_streamedMethod · 0.45
status_happy_pathFunction · 0.45

Calls 1

post_jsonMethod · 0.80

Tested by

no test coverage detected