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