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()
|
runtime.LockOSThread()
|
||||||
defer runtime.UnlockOSThread()
|
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(
|
ret := C.git_commit_create_with_signature(
|
||||||
oid.toC(),
|
oid.toC(),
|
||||||
|
|||||||
c.Owner().ptr,
|
c.Owner().ptr,
|
||||||
C.CString(totalCommit),
|
cTotalCommit,
|
||||||
C.CString(signature),
|
cSignature,
|
||||||
csf,
|
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.