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

Function wrap_worktree

src/worktree.c:151–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149};
150
151PyObject *
152wrap_worktree(Repository* repo, git_worktree* wt)
153{
154 Worktree* py_wt = NULL;
155
156 py_wt = PyObject_New(Worktree, &WorktreeType);
157 if (py_wt == NULL) {
158 PyErr_NoMemory();
159 return NULL;
160 }
161
162 py_wt->repo = repo;
163 Py_INCREF(repo);
164 py_wt->worktree = wt;
165
166 return (PyObject*) py_wt;
167}
168
169

Callers 2

Repository_add_worktreeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…