@classmethod
def _from_c(cls, ptr, from_iterator=False):
    """Builds the entry from a ``git_config_entry`` pointer. ``from_iterator``
        should be ``True`` when the entry was created during ``git_config_iterator``
        actions
        """
    entry = cls.__new__(cls)
    entry._entry = ptr
    entry.from_iterator = from_iterator
    return entry
