shadow_rsFunction branch
Source pub fn branch() -> String
Expand description
get current repository git branch.
When current repository exists git folder.
It’s use default feature.This function try use git2 crates get current branch.
If not use git2 feature,then try use Command to get.