mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 12:49:08 -04:00
feat(commit): make 'updateRef' to be required argument
This commit is contained in:
parent
678f6208f6
commit
c2da51af94
4 changed files with 27 additions and 20 deletions
|
@ -65,7 +65,7 @@ void annotatedFree(Pointer<git_annotated_commit> commit) {
|
|||
/// Throws a [LibGit2Error] if error occured.
|
||||
Pointer<git_oid> create({
|
||||
required Pointer<git_repository> repoPointer,
|
||||
String? updateRef,
|
||||
required String updateRef,
|
||||
required Pointer<git_signature> authorPointer,
|
||||
required Pointer<git_signature> committerPointer,
|
||||
String? messageEncoding,
|
||||
|
@ -75,7 +75,7 @@ Pointer<git_oid> create({
|
|||
required List<Pointer<git_commit>> parents,
|
||||
}) {
|
||||
final out = calloc<git_oid>();
|
||||
final updateRefC = updateRef?.toNativeUtf8().cast<Int8>() ?? nullptr;
|
||||
final updateRefC = updateRef.toNativeUtf8().cast<Int8>();
|
||||
final messageEncodingC =
|
||||
messageEncoding?.toNativeUtf8().cast<Int8>() ?? nullptr;
|
||||
final messageC = message.toNativeUtf8().cast<Int8>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue