'Check if a specific Git object or ref is present.
:param name: Git object SHA1 or ref name'

def __contains__(self, name):

    if (len(name) in (20, 40)):
        return ((name in self.object_store) or (name in self.refs))
    else:
        return (name in self.refs)
