Skip to content

Commit 2e14065

Browse files
committed
Add value_string property, decode_as_string(entry.value)
1 parent 9d10675 commit 2e14065

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
@@ -313,6 +313,10 @@ def level(self):
313313
def name(self):
314314
return self._entry.name
315315

316+
@property
317+
def value_string(self):
318+
return self.decode_as_string(self.value)
319+
316320
@staticmethod
317321
def decode_as_string(value):
318322
return ffi.string(value).decode('utf-8')

0 commit comments

Comments
 (0)