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

Method list_remotes

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

Source from the content-addressed store, hash-verified

374 }
375
376 async fn list_remotes(&self) -> Result<Vec<WorkspaceGitRemote>> {
377 let (success, stdout, stderr) = self
378 .run_git_command(vec!["remote".to_string(), "-v".to_string()])
379 .await?;
380 if !success {
381 bail!("{}", stderr.trim_end());
382 }
383
384 Ok(stdout.lines().filter_map(parse_git_remote_line).collect())
385 }
386}
387
388#[async_trait]

Callers 1

remoteMethod · 0.45

Calls 1

run_git_commandMethod · 0.80

Tested by

no test coverage detected