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

Function format_author

atomic-cli/src/commands/change/command.rs:831–837  ·  view source on GitHub ↗

Format an author for display.

(author: &Author)

Source from the content-addressed store, hash-verified

829
830/// Format an author for display.
831pub(crate) fn format_author(author: &Author) -> String {
832 if let Some(ref email) = author.email {
833 format!("{} <{}>", author.name, email)
834 } else {
835 author.name.clone()
836 }
837}
838
839/// Count unique paths affected by hunks.
840pub(crate) fn count_unique_paths<H>(hunks: &[GraphOp<H>]) -> usize {

Callers 1

format_defaultMethod · 0.70

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected