Load the message from a change, returning None if it fails.
(repo: &Repository, hash: &Hash)
| 110 | |
| 111 | /// Load the message from a change, returning None if it fails. |
| 112 | fn load_change_message(repo: &Repository, hash: &Hash) -> Option<String> { |
| 113 | repo.load_change(hash) |
| 114 | .ok() |
| 115 | .map(|c| c.hashed.header.message.clone()) |
| 116 | } |
| 117 | |
| 118 | /// Check if local and remote histories have diverged. |
| 119 | /// |
no test coverage detected