Load remote configuration for this repository. # Returns The remote configuration, which may be empty if no remotes are configured. # Errors Returns an error if the config file exists but cannot be parsed. # Example ```rust,ignore let repo = Repository::open(".")?; let remotes = repo.load_remotes()?; if let Some(origin) = remotes.get("origin") { println!("Origin URL: {}", origin.url); } ```
(&self)
| 24 | /// } |
| 25 | /// ``` |
| 26 | pub fn load_remotes(&self) -> Result<RemoteConfig, RepositoryError> { |
| 27 | RemoteConfig::load(self.config_path()).map_err(|e| RepositoryError::Config(e.to_string())) |
| 28 | } |
| 29 | |
| 30 | /// Save remote configuration for this repository. |
| 31 | /// |
no test coverage detected