MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / has_remote

Method has_remote

atomic-repository/src/repository/remotes.rs:208–211  ·  view source on GitHub ↗

Check if a remote exists.

(&self, name: &str)

Source from the content-addressed store, hash-verified

206
207 /// Check if a remote exists.
208 pub fn has_remote(&self, name: &str) -> Result<bool, RepositoryError> {
209 let config = self.load_remotes()?;
210 Ok(config.contains(name))
211 }
212}

Callers

nothing calls this directly

Calls 2

load_remotesMethod · 0.80
containsMethod · 0.45

Tested by

no test coverage detected