cli: ref_update should take a ref
Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com> X-Clacks-Overhead: GNU Terry Pratchett
This commit is contained in:
parent
98bb91680d
commit
2fe0cca6d9
|
|
@ -83,7 +83,7 @@ pub fn timestamp(time: impl Into<LocalTime>) -> Paint<String> {
|
|||
}
|
||||
|
||||
/// Format a ref update.
|
||||
pub fn ref_update(update: RefUpdate) -> Paint<&'static str> {
|
||||
pub fn ref_update(update: &RefUpdate) -> Paint<&'static str> {
|
||||
match update {
|
||||
RefUpdate::Updated { .. } => term::format::tertiary("updated"),
|
||||
RefUpdate::Created { .. } => term::format::positive("created"),
|
||||
|
|
|
|||
Loading…
Reference in New Issue