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
|
@ -58,7 +58,7 @@ class Commit {
|
|||
/// Throws a [LibGit2Error] if error occured.
|
||||
static Oid create({
|
||||
required Repository repo,
|
||||
String? updateRef,
|
||||
required String updateRef,
|
||||
required Signature author,
|
||||
required Signature committer,
|
||||
String? messageEncoding,
|
||||
|
@ -103,10 +103,10 @@ class Commit {
|
|||
static Oid amend({
|
||||
required Repository repo,
|
||||
required Commit commit,
|
||||
required String? updateRef,
|
||||
Signature? author,
|
||||
Signature? committer,
|
||||
Tree? tree,
|
||||
String? updateRef,
|
||||
String? message,
|
||||
String? messageEncoding,
|
||||
}) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue