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

Function TreeBuilder_remove

src/treebuilder.c:134–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132 "Remove an entry from the builder.");
133
134PyObject *
135TreeBuilder_remove(TreeBuilder *self, PyObject *py_filename)
136{
137 PyObject *tvalue;
138 char *filename = pgit_borrow_fsdefault(py_filename, &tvalue);
139 if (filename == NULL)
140 return NULL;
141
142 int err = git_treebuilder_remove(self->bld, filename);
143 Py_DECREF(tvalue);
144 if (err)
145 return Error_set(err);
146
147 Py_RETURN_NONE;
148}
149
150
151PyDoc_STRVAR(TreeBuilder_clear__doc__,

Callers

nothing calls this directly

Calls 2

pgit_borrow_fsdefaultFunction · 0.85
Error_setFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…