Skip to content

Commit

Permalink
Document properties
Browse files Browse the repository at this point in the history
  • Loading branch information
thecjharries committed Mar 17, 2018
1 parent 8f74752 commit cdd9566
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pygit2/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,18 +307,26 @@ def __del__(self):

@property
def value(self):
"""The raw ``cData`` entry value
"""
return self._entry.value

@property
def level(self):
"""The entry's ``git_config_level_t`` value
"""
return self._entry.level

@property
def name(self):
"""The entry's name
"""
return self.decode_as_string(self._entry.name)

@property
def value_string(self):
"""The entry's value as a string
"""
return self.decode_as_string(self.value)

@staticmethod
Expand Down

0 comments on commit cdd9566

Please sign in to comment.