@@ -1465,32 +1465,6 @@ Repository_create_reference_symbolic(Repository *self, PyObject *args,
1465
1465
return wrap_reference (c_reference , self );
1466
1466
}
1467
1467
1468
- PyDoc_STRVAR (Repository_parse_diff__doc__ ,
1469
- "parse_diff(git_diff: str) -> Diff\n"
1470
- "\n"
1471
- "Parses a git unified diff into a diff object applied to the repository" );
1472
-
1473
- PyObject *
1474
- Repository_parse_diff (PyObject * self , PyObject * args )
1475
- {
1476
- /* A wrapper around
1477
- * git_diff_from_buffer
1478
- */
1479
- git_diff * diff ;
1480
- const char * content = NULL ;
1481
- Py_ssize_t content_len ;
1482
- int err ;
1483
-
1484
- if (!PyArg_ParseTuple (args , "s#" , & content , & content_len ))
1485
- return NULL ;
1486
-
1487
- err = git_diff_from_buffer (& diff , content , content_len );
1488
- if (err < 0 )
1489
- return Error_set (err );
1490
-
1491
- return wrap_diff (diff , (Repository * ) self );
1492
- }
1493
-
1494
1468
PyDoc_STRVAR (Repository_status__doc__ ,
1495
1469
"status() -> {str: int}\n"
1496
1470
"\n"
@@ -1839,7 +1813,6 @@ PyMethodDef Repository_methods[] = {
1839
1813
METHOD (Repository , init_submodules , METH_VARARGS | METH_KEYWORDS ),
1840
1814
METHOD (Repository , lookup_reference , METH_O ),
1841
1815
METHOD (Repository , revparse_single , METH_O ),
1842
- METHOD (Repository , parse_diff , METH_VARARGS ),
1843
1816
METHOD (Repository , status , METH_NOARGS ),
1844
1817
METHOD (Repository , status_file , METH_O ),
1845
1818
METHOD (Repository , notes , METH_VARARGS ),
0 commit comments