Skip to main content

short_change_id

Function short_change_id 

Source
pub fn short_change_id(id: &str) -> String
Expand description

Renders a change id for a progress line.

A change id ends in a 64-character fingerprint, which is a record rather than a sentence: at the width of a terminal it pushes the part a reader recognises – the namespace and the repository – off the line. The JSON summary still carries the id whole, so nothing anyone has to copy is shortened here.