pub fn git_branch_name() -> Option<String>Expand description
Returns the current Git branch name if the git command is available and executed successfully.
This function executes the git symbolic-ref --short HEAD command to retrieve the name of
the current Git branch. If the command is successful, the branch name is extracted and returned
as a String. If the command fails or if git is not available, the function returns None.