Rename a remote. # Arguments `old_name` - The current name of the remote `new_name` - The new name for the remote
(&self, old_name: &str, new_name: &str)
| 184 | /// * `old_name` - The current name of the remote |
| 185 | /// * `new_name` - The new name for the remote |
| 186 | pub fn rename_remote(&self, old_name: &str, new_name: &str) -> Result<(), RepositoryError> { |
| 187 | let mut config = self.load_remotes()?; |
| 188 | config |
| 189 | .rename(old_name, new_name) |
| 190 | .map_err(RepositoryError::Remote)?; |
| 191 | self.save_remotes(&config) |
| 192 | } |
| 193 | |
| 194 | /// List all configured remotes. |
| 195 | /// |
nothing calls this directly
no test coverage detected