Skip to content

Commit

Permalink
Document _from_c
Browse files Browse the repository at this point in the history
  • Loading branch information
thecjharries committed Mar 17, 2018
1 parent 8ca94fc commit f938b49
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pygit2/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,10 @@ class ConfigEntry(object):

@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
Expand Down

0 comments on commit f938b49

Please sign in to comment.