Add support for creating signed commits and signing commits during a rebase #626

Merged
mbfr merged 25 commits from master into master 2020-08-18 11:25:31 -05:00
1 changed files with 3 additions and 0 deletions
Showing only changes of commit 23fcabf687 - Show all commits

View File

@ -86,6 +86,9 @@ func commitSignCallback(_signature *C.git_buf, _signature_field *C.git_buf, _com
signature, signatureField, err := opts.SigningCallback(commitContent)
if err != nil {
if gitError, ok := err.(*GitError); ok {
return C.int(gitError.Code)
}
return C.int(-1)
}