fn shorten_ref(git_ref: &str) -> &str
Shortens a git ref for display. Commit SHAs are truncated to 7 characters; branch/tag names are returned as-is.