Load the message from a change, returning None if it fails.
(repo: &Repository, hash: &Hash)
| 351 | |
| 352 | /// Load the message from a change, returning None if it fails. |
| 353 | pub fn load_change_message(repo: &Repository, hash: &Hash) -> Option<String> { |
| 354 | repo.load_change(hash) |
| 355 | .ok() |
| 356 | .map(|c| c.hashed.header.message.clone()) |
| 357 | } |
| 358 | |
| 359 | // Error Conversion |
| 360 |
no test coverage detected