Skip to main content

shorten_ref

Function shorten_ref 

Source
fn shorten_ref(git_ref: &str) -> &str
Expand description

Shortens a git ref for display. Commit SHAs are truncated to 7 characters; branch/tag names are returned as-is.