diff options
| author | Sami Hiltunen <[email protected]> | 2020-10-23 14:17:38 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-10-23 05:17:38 -0700 |
| commit | 10d5ebf231bdc37293235a6fc2bdf94fd25d0c56 (patch) | |
| tree | e09005e2e5f5c2a31e490dbd6104a8d4993113dc /git.go | |
| parent | 3a4204bd934b59a55581d33d300617a4f621257f (diff) | |
apply: Add bindings for git_apply_to_tree (#657)
Adds bindings to the git_apply_to_tree function that allows applying
a diff directly to a tree.
Diffstat (limited to 'git.go')
| -rw-r--r-- | git.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -45,6 +45,7 @@ const ( ErrClassRevert ErrorClass = C.GITERR_REVERT ErrClassCallback ErrorClass = C.GITERR_CALLBACK ErrClassRebase ErrorClass = C.GITERR_REBASE + ErrClassPatch ErrorClass = C.GITERR_PATCH ) type ErrorCode int @@ -109,6 +110,8 @@ const ( ErrPassthrough ErrorCode = C.GIT_PASSTHROUGH // Signals end of iteration with iterator ErrIterOver ErrorCode = C.GIT_ITEROVER + // Patch application failed + ErrApplyFail ErrorCode = C.GIT_EAPPLYFAIL ) var ( |
