def get_name(self, sha1, pattern=None):
        if pattern:
            return self.git.name_rev(sha1, name_only=False, refs=pattern,
                                     with_exceptions=False)
        else:
            return self.git.name_rev(sha1, name_only=False,
                                     with_exceptions=False)
Return a symbolic name corresponding to a SHA1
dataset/ETHPy150Open openstack/git-upstream/git_upstream/lib/utils.py/GitMixin.get_name