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

Method index

pygit2/repository.py:774–780  ·  view source on GitHub ↗

Index representing the repository's index file.

(self)

Source from the content-addressed store, hash-verified

772 #
773 @property
774 def index(self):
775 """Index representing the repository's index file."""
776 cindex = ffi.new('git_index **')
777 err = C.git_repository_index(cindex, self._repo)
778 check_error(err, io=True)
779
780 return Index.from_c(self, cindex)
781
782 #
783 # Merging

Callers

nothing calls this directly

Calls 2

check_errorFunction · 0.85
from_cMethod · 0.45

Tested by

no test coverage detected