Load the message from a change, returning None if it fails.
(repo: &Repository, hash: &Hash)
| 340 | |
| 341 | /// Load the message from a change, returning None if it fails. |
| 342 | pub fn load_change_message(repo: &Repository, hash: &Hash) -> Option<String> { |
| 343 | repo.load_change(hash) |
| 344 | .ok() |
| 345 | .map(|c| c.hashed.header.message.clone()) |
| 346 | } |
| 347 | |
| 348 | // Error Conversion |
| 349 |
no test coverage detected