feat(repository): add ability to pass callbacks for remote and repository creation during clone

This commit is contained in:
Aleksey Kulikov 2021-09-27 11:19:00 +03:00
parent b1f112a30d
commit 6d48ae742c
4 changed files with 161 additions and 6 deletions

View file

@ -119,9 +119,11 @@ class Remote {
/// to remote object in memory.
const Remote(this._remotePointer);
/// Pointer to memory address for allocated remote object.
final Pointer<git_remote> _remotePointer;
/// Pointer to memory address for allocated remote object.
Pointer<git_remote> get pointer => _remotePointer;
/// Returns the remote's name.
String get name => bindings.name(_remotePointer);