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

Provide a description of the given commit.

A return value of None indicates that this commit metadata provider was inapplicable for the provided commit.

Implementors