Load the message from a change, returning None if it fails.
(repo: &Repository, hash: &Hash)
| 94 | |
| 95 | /// Load the message from a change, returning None if it fails. |
| 96 | fn load_change_message(repo: &Repository, hash: &Hash) -> Option<String> { |
| 97 | repo.load_change(hash) |
| 98 | .ok() |
| 99 | .map(|c| c.hashed.header.message.clone()) |
| 100 | } |
| 101 | |
| 102 | /// Check if local and remote histories have diverged. |
| 103 | /// |
no test coverage detected