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

Function load_change_message

atomic-cli/tests/fixtures/helpers_c1.rs:96–100  ·  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

94
95/// Load the message from a change, returning None if it fails.
96fn 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///

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