pub fn short_branch(branch: &str) -> &str
Short branch name from refs/heads/foo → foo. Returns the original if it doesn’t carry the prefix.
refs/heads/foo
foo