Trait branchless::core::metadata::CommitMetadataProvider [−][src]
pub trait CommitMetadataProvider { fn describe_commit(
&mut self,
commit: &Commit<'_>
) -> Result<Option<StyledString>>; }
Expand description
Interface to display information about a commit in the smartlog.
Required methods
fn describe_commit(
&mut self,
commit: &Commit<'_>
) -> Result<Option<StyledString>>
fn describe_commit(
&mut self,
commit: &Commit<'_>
) -> Result<Option<StyledString>>
Provide a description of the given commit.
A return value of None
indicates that this commit metadata provider was
inapplicable for the provided commit.