| 336 | }; |
| 337 | |
| 338 | PyObject * |
| 339 | wrap_branch(git_reference *c_reference, Repository *repo) |
| 340 | { |
| 341 | Branch *py_branch=NULL; |
| 342 | |
| 343 | py_branch = PyObject_New(Branch, &BranchType); |
| 344 | if (py_branch) { |
| 345 | py_branch->reference = c_reference; |
| 346 | if (repo) { |
| 347 | py_branch->repo = repo; |
| 348 | Py_INCREF(repo); |
| 349 | } |
| 350 | } |
| 351 | |
| 352 | return (PyObject *)py_branch; |
| 353 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…