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

Method write

pygit2/packbuilder.py:78–83  ·  view source on GitHub ↗
(self, path: str | bytes | PathLike[str] | None = None)

Source from the content-addressed store, hash-verified

76 return C.git_packbuilder_set_threads(self._packbuilder, n_threads)
77
78 def write(self, path: str | bytes | PathLike[str] | None = None) -> None:
79 path_bytes = ffi.NULL if path is None else to_bytes(path)
80 err = C.git_packbuilder_write(
81 self._packbuilder, path_bytes, 0, ffi.NULL, ffi.NULL
82 )
83 check_error(err)
84
85 @property
86 def written_objects_count(self) -> int:

Callers 1

packMethod · 0.95

Calls 2

to_bytesFunction · 0.85
check_errorFunction · 0.85

Tested by

no test coverage detected