Skip to main content

short_branch

Function short_branch 

Source
pub fn short_branch(branch: &str) -> &str
Expand description

Short branch name from refs/heads/foo → foo. Returns the original if it doesn’t carry the prefix.