def committed(self, key):
        """Determine whether there is a commit for a key.

        >>> repo.committed('foo')
        False
        >>> repo.commit('foo', 'bar')
        >>> repo.committed('foo')
        True

        :param key: the key to check
        :type key: string

        :returns: whether there is a commit for the key.
        :rtype: boolean
        """
        try:
            self._repo.lookup_reference(self._key2ref(key))
            return True
        except __HOLE__:
            return False
dataset/ETHPy150Open talos/jsongit/jsongit/models.py/Repository.committed