@classmethod
def is_sha(cls, sha):
    """returns whether sha is a potential sha id
        (i.e. proper hexstring between 4 and 40 characters)
        """
    if not 4 <= len(sha) <= 40:
        return False
    return bool(cls.__is_sha_pat.match(sha))
