Skip to content

Commit f938b49

Browse files
committed
Document _from_c
1 parent 8ca94fc commit f938b49

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pygit2/config.py

+4
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,10 @@ class ConfigEntry(object):
292292

293293
@classmethod
294294
def _from_c(cls, ptr, from_iterator=False):
295+
"""Builds the entry from a ``git_config_entry`` pointer. ``from_iterator``
296+
should be ``True`` when the entry was created during ``git_config_iterator``
297+
actions
298+
"""
295299
entry = cls.__new__(cls)
296300
entry._entry = ptr
297301
entry.from_iterator = from_iterator

0 commit comments

Comments
 (0)