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

Method add

pygit2/packbuilder.py:65–68  ·  view source on GitHub ↗
(self, oid: 'Oid')

Source from the content-addressed store, hash-verified

63 return git_oid
64
65 def add(self, oid: 'Oid') -> None:
66 git_oid = self.__convert_object_to_oid(oid)
67 err = C.git_packbuilder_insert(self._packbuilder, git_oid, ffi.NULL)
68 check_error(err)
69
70 def add_recur(self, oid: 'Oid') -> None:
71 git_oid = self.__convert_object_to_oid(oid)

Callers 1

test_addFunction · 0.95

Calls 2

check_errorFunction · 0.85

Tested by 1

test_addFunction · 0.76