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

Method assign_to

pygit2/utils.py:186–192  ·  view source on GitHub ↗
(self, git_strarray: 'GitStrrayC')

Source from the content-addressed store, hash-verified

184 return self.__array
185
186 def assign_to(self, git_strarray: 'GitStrrayC') -> None:
187 if self.__array == ffi.NULL:
188 git_strarray.strings = ffi.NULL
189 git_strarray.count = 0
190 else:
191 git_strarray.strings = self.__arr
192 git_strarray.count = len(self.__strings)
193
194
195T = TypeVar('T')

Callers 1

pushMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected