mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 12:49:08 -04:00
feat(remote): add ability to pass callbacks as arguments
This commit is contained in:
parent
b15b56f0ae
commit
299d1a17e7
8 changed files with 374 additions and 68 deletions
|
@ -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,
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue