refactor!: use named arguments if there is more than one

This commit is contained in:
Aleksey Kulikov 2021-09-30 18:04:36 +03:00
parent ec80ad3dd4
commit 5f7fdf4bd3
66 changed files with 1920 additions and 1136 deletions

View file

@ -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);
}