Closed webknjaz closed 4 years ago
@jdavid what is the correct argument type? I haven't found what works for this method
A Diff object. An example from test/test_repository.py
:
diff = pygit2.Diff.parse_diff(patch)
testrepo.apply(diff)
@jdavid interesting... Do you think it's possible to emulate backport/chery-pick with applying a patch this way?
I use pygit2 from a wheel. The details of what I see are below: