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

Function format_author

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

Format an author for display.

(author: &Author)

Source from the content-addressed store, hash-verified

789
790/// Format an author for display.
791pub(crate) fn format_author(author: &Author) -> String {
792 if let Some(ref email) = author.email {
793 format!("{} <{}>", author.name, email)
794 } else {
795 author.name.clone()
796 }
797}
798
799/// Count unique paths affected by hunks.
800pub(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