Load the message from a change, returning None if it fails.
(repo: &Repository, hash: &Hash)
| 394 | |
| 395 | /// Load the message from a change, returning None if it fails. |
| 396 | pub fn load_change_message(repo: &Repository, hash: &Hash) -> Option<String> { |
| 397 | repo.load_change(hash) |
| 398 | .ok() |
| 399 | .map(|c| c.hashed.header.message.clone()) |
| 400 | } |
| 401 | |
| 402 | // Error Conversion |
| 403 |
no test coverage detected