mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 04:39:07 -04:00
feat: add more toString overrides for debugging
This commit is contained in:
parent
beed516c89
commit
9f346c99f7
26 changed files with 175 additions and 18 deletions
|
@ -263,6 +263,11 @@ class Remote {
|
|||
|
||||
/// Releases memory allocated for remote object.
|
||||
void free() => bindings.free(_remotePointer);
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'Remote{name: $name, url: $url, pushUrl: $pushUrl, refspecCount: $refspecCount}';
|
||||
}
|
||||
}
|
||||
|
||||
/// Provides callers information about the progress of indexing a packfile, either
|
||||
|
@ -295,4 +300,11 @@ class TransferProgress {
|
|||
|
||||
/// Returns number of bytes received up to now.
|
||||
int get receivedBytes => _transferProgressPointer.ref.received_bytes;
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'TransferProgress{totalObjects: $totalObjects, indexedObjects: $indexedObjects, '
|
||||
'receivedObjects: $receivedObjects, localObjects: $localObjects, totalDeltas: $totalDeltas, '
|
||||
'indexedDeltas: $indexedDeltas, receivedBytes: $receivedBytes}';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue