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

Method list_branches

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

Source from the content-addressed store, hash-verified

329 }
330
331 async fn list_branches(&self) -> Result<Vec<WorkspaceGitBranch>> {
332 self.run_blocking_git(|root| {
333 Ok(crate::git::list_branches(&root)?
334 .into_iter()
335 .map(|branch| WorkspaceGitBranch {
336 name: branch.name,
337 is_current: branch.is_current,
338 })
339 .collect())
340 })
341 .await
342 }
343
344 async fn create_branch(&self, request: WorkspaceGitCreateBranchRequest) -> Result<()> {
345 self.run_blocking_git(move |root| {

Callers 1

branchMethod · 0.45

Calls 2

list_branchesFunction · 0.85
run_blocking_gitMethod · 0.80

Tested by

no test coverage detected