MCPcopy Create free account
hub / github.com/libgit2/pygit2 / __repr__

Method __repr__

pygit2/index.py:404–415  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

402 'Contents of the file, which might include conflict markers'
403
404 def __repr__(self):
405 t = type(self)
406 contents = (
407 self.contents if len(self.contents) <= 20 else f'{self.contents[:20]}...'
408 )
409 return (
410 f'<{t.__module__}.{t.__qualname__} "'
411 f'automergeable={self.automergeable} "'
412 f'path={self.path} '
413 f'mode={self.mode} '
414 f'contents={contents}>'
415 )
416
417 @classmethod
418 def _from_c(cls, centry):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected