From 10d5ebf231bdc37293235a6fc2bdf94fd25d0c56 Mon Sep 17 00:00:00 2001 From: Sami Hiltunen Date: Fri, 23 Oct 2020 14:17:38 +0200 Subject: 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. --- git.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'git.go') diff --git a/git.go b/git.go index 5acff0d..d3def5e 100644 --- a/git.go +++ b/git.go @@ -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 ( -- cgit v1.2.3