Added currentBranch() method for getting the checked out branch, if any.