

def get_name(self, sha1, pattern=None):
    '\n        Return a symbolic name corresponding to a SHA1\n\n        Will return reference names using the commit revision modifier strings\n        to identify the given SHA1. Or will return nothing if SHA1 cannot be\n        identified relative to any existing reference.\n        '
    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)

dataset/ETHPy150Open openstack/git-upstream/git_upstream/lib/utils.py GitMixin.get_name/original