| 149 | }; |
| 150 | |
| 151 | PyObject * |
| 152 | wrap_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 |
no outgoing calls
no test coverage detected
searching dependent graphs…