get_git_branch

Function get_git_branch 

Source
pub fn get_git_branch() -> Result<String, String>
Expand description

Gets the current branch of the source code directory.

Example: "release"

ยงErrors

Returns an error if it fails to execute the git command.