

def is_valid_commit(self, sha1):
    '\n        Check if given SHA1 refers to a commit object on a valid ref.\n\n        This can be used to test if any name or SHA1 refers to a commit\n        reachable by walking any of the refs under the .git/refs.\n        '
    return bool(self.get_name(sha1))

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