MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / load_change_message

Function load_change_message

atomic-cli/tests/fixtures/helpers_c5.rs:112–116  ·  view source on GitHub ↗

Load the message from a change, returning None if it fails.

(repo: &Repository, hash: &Hash)

Source from the content-addressed store, hash-verified

110
111/// Load the message from a change, returning None if it fails.
112fn 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///

Callers 1

calculate_push_deltaFunction · 0.70

Calls 3

okMethod · 0.45
load_changeMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected