mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 04:39:07 -04:00
refactor!: use named arguments if there is more than one
This commit is contained in:
parent
ec80ad3dd4
commit
5f7fdf4bd3
66 changed files with 1920 additions and 1136 deletions
|
@ -78,6 +78,9 @@ String toSHA(Pointer<git_oid> id) {
|
|||
/// Compare two oid structures.
|
||||
///
|
||||
/// Returns <0 if a < b, 0 if a == b, >0 if a > b.
|
||||
int compare(Pointer<git_oid> a, Pointer<git_oid> b) {
|
||||
return libgit2.git_oid_cmp(a, b);
|
||||
int compare({
|
||||
required Pointer<git_oid> aPointer,
|
||||
required Pointer<git_oid> bPointer,
|
||||
}) {
|
||||
return libgit2.git_oid_cmp(aPointer, bPointer);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue