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

Function TreeBuilder_write

src/treebuilder.c:87–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85 "Write the tree to the given repository.");
86
87PyObject *
88TreeBuilder_write(TreeBuilder *self)
89{
90 int err;
91 git_oid oid;
92
93 err = git_treebuilder_write(&oid, self->bld);
94 if (err < 0)
95 return Error_set(err);
96
97 return git_oid_to_python(&oid);
98}
99
100
101PyDoc_STRVAR(TreeBuilder_get__doc__,

Callers

nothing calls this directly

Calls 2

Error_setFunction · 0.85
git_oid_to_pythonFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…