libgit2 / pygit2

Python bindings for libgit2
https://www.pygit2.org/
Other
1.59k stars 383 forks source link

Add location argument to Repository.apply/applies #1091

Closed jorio closed 2 years ago

jorio commented 2 years ago

Currently, Repository.apply() can only be used to act on the workdir. This PR adds a new "location" argument to Repository.apply(). This makes it possible to apply patches to the workdir, index, or both.