summaryrefslogtreecommitdiff
path: root/git.go
diff options
context:
space:
mode:
authorSami Hiltunen <[email protected]>2020-10-23 14:17:38 +0200
committerGitHub <[email protected]>2020-10-23 05:17:38 -0700
commit10d5ebf231bdc37293235a6fc2bdf94fd25d0c56 (patch)
treee09005e2e5f5c2a31e490dbd6104a8d4993113dc /git.go
parent3a4204bd934b59a55581d33d300617a4f621257f (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.go3
1 files changed, 3 insertions, 0 deletions
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 (