Add support for creating signed commits and signing commits during a rebase #626
|
@ -79,11 +79,16 @@ func (c *Commit) WithSignature(signature string, signatureField string) (*Oid, e
|
|||
runtime.LockOSThread()
|
||||
defer runtime.UnlockOSThread()
|
||||
|
||||
cTotalCommit:=C.CString(totalCommit)
|
||||
cSignature := C.CString(signature)
|
||||
defer C.free(unsafe.Pointer(cTotalCommit))
|
||||
defer C.free(unsafe.Pointer(cSignature))
|
||||
|
||||
ret := C.git_commit_create_with_signature(
|
||||
oid.toC(),
|
||||
|
||||
c.Owner().ptr,
|
||||
C.CString(totalCommit),
|
||||
C.CString(signature),
|
||||
cTotalCommit,
|
||||
cSignature,
|
||||
csf,
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
for consistency with
Amend()
would it be possible to call this variablecerr
?There isn't really a lot of consistency with other functions, sometimes it's called
code
, sometimesret
, sometimes,ecode
, sometimescerr
, etc.