feat(remote): add ability to pass callbacks as arguments

This commit is contained in:
Aleksey Kulikov 2021-09-28 17:17:03 +03:00
parent b15b56f0ae
commit 299d1a17e7
8 changed files with 374 additions and 68 deletions

View file

@ -107,6 +107,7 @@ class Repository {
Remote Function(Repository, String, String)? remote,
Repository Function(String, bool)? repository,
String? checkoutBranch,
Callbacks callbacks = const Callbacks(),
}) {
libgit2.git_libgit2_init();
@ -117,6 +118,7 @@ class Repository {
remote,
repository,
checkoutBranch,
callbacks,
);
}