summaryrefslogtreecommitdiff
path: root/include/git2/apply.h
Commit message (Collapse)AuthorAgeFilesLines
* Make enum in includes C90 compliant by removing trailing comma.Peter Pettersson2021-11-151-2/+2
|
* Add some missing documentation about return valuepunkymaniac2021-06-021-0/+2
|
* apply: add GIT_APPLY_CHECKDrew DeVault2019-10-221-0/+12
| | | | | This adds an option which will check if a diff is applicable without actually applying it; equivalent to git apply --check.
* docs: More of itEtienne Samson2019-06-261-1/+6
|
* doc: add missing documentation commentsEtienne Samson2019-06-151-0/+1
|
* apply: add an options struct initializerethomson/opts_initEdward Thomson2019-06-141-1/+3
|
* Introduce GIT_CALLBACK macro to enforce cdeclEdward Thomson2019-01-171-2/+2
| | | | | | | | | Since we now always build the library with cdecl calling conventions, our callbacks should be decorated as such so that users will not be able to provide callbacks defined with other calling conventions. The `GIT_CALLBACK` macro will inject the `__cdecl` attribute as appropriate.
* apply: introduce a hunk callbackEdward Thomson2018-11-051-0/+17
| | | | | Introduce a callback to patch application that allows consumers to cancel hunk application.
* apply: introduce a delta callbackEdward Thomson2018-11-051-0/+19
| | | | | | | Introduce a callback to the application options that allow callers to add a per-delta callback. The callback can return an error code to stop patch application, or can return a value to skip the application of a particular delta.
* apply: move location to an argument, not the optsEdward Thomson2018-11-051-11/+21
| | | | | | | | Move the location option to an argument, out of the options structure. This allows the options structure to be re-used for functions that don't need to know the location, since it's implicit in their functionality. For example, `git_apply_tree` should not take a location, but is expected to take all the other options.
* apply: introduce `git_apply`Edward Thomson2018-11-041-0/+42
| | | | | | Introduce `git_apply`, which will take a `git_diff` and apply it to the working directory (akin to `git apply`), the index (akin to `git apply --cached`), or both (akin to `git apply --index`).
* apply: introduce `git_apply_tree`Edward Thomson2018-11-031-0/+41
Introduce `git_apply_tree`, which will apply a `git_diff` to a given `git_tree`, allowing an in-memory patch application for a repository.