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

Function load_change_message

atomic-cli/src/commands/push/helpers.rs:396–400  ·  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

394
395/// Load the message from a change, returning None if it fails.
396pub fn load_change_message(repo: &Repository, hash: &Hash) -> Option<String> {
397 repo.load_change(hash)
398 .ok()
399 .map(|c| c.hashed.header.message.clone())
400}
401
402// Error Conversion
403

Callers 2

display_dry_runMethod · 0.85
run_asyncMethod · 0.85

Calls 2

load_changeMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected