List all configured remotes. # Returns A vector of (name, entry) tuples for all configured remotes.
(&self)
| 197 | /// |
| 198 | /// A vector of (name, entry) tuples for all configured remotes. |
| 199 | pub fn list_remotes(&self) -> Result<Vec<(String, RemoteEntry)>, RepositoryError> { |
| 200 | let config = self.load_remotes()?; |
| 201 | Ok(config |
| 202 | .iter() |
| 203 | .map(|(name, entry)| (name.to_string(), entry.clone())) |
| 204 | .collect()) |
| 205 | } |
| 206 | |
| 207 | /// Check if a remote exists. |
| 208 | pub fn has_remote(&self, name: &str) -> Result<bool, RepositoryError> { |
nothing calls this directly
no test coverage detected