'Get the branch ``name`` of this repository.
:param str name: (required), branch name
:type name: str
:returns: :class:`Branch <github3.repos.branch.Branch>`'

def branch(self, name):

    json = None
    if name:
        url = self._build_url(u'branches', name, base_url=self._api)
        json = self._json(self._get(url, headers=Branch.PREVIEW_HEADERS), 200)
    return self._instance_or_null(Branch, json)
