get_branch: Current branch name of a git repository.
Description
get_branch returns the current branch name for the git repository passed in as
parameter (default being the current repository).
Usage
get_branch(dir_path = "./")
Arguments
dir_path
Path of the git repository.