feat: add ability to compare objects (#54)

This commit is contained in:
Aleksey Kulikov 2022-05-10 16:18:55 +03:00 committed by GitHub
parent 5dfedadfe6
commit bad40bdb61
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
45 changed files with 466 additions and 137 deletions

View file

@ -1,9 +1,12 @@
import 'dart:ffi';
import 'package:equatable/equatable.dart';
import 'package:libgit2dart/libgit2dart.dart';
import 'package:libgit2dart/src/bindings/libgit2_bindings.dart';
import 'package:libgit2dart/src/bindings/refspec.dart' as bindings;
import 'package:meta/meta.dart';
class Refspec {
@immutable
class Refspec extends Equatable {
/// Initializes a new instance of the [Refspec] class
/// from provided pointer to refspec object in memory.
///
@ -72,6 +75,9 @@ class Refspec {
@override
String toString() {
return 'Refspec{source: $source, destination: $destination, force: $force, '
'string: $string}';
'string: $string, direction: $direction}';
}
@override
List<Object?> get props => [source, destination, force, string, direction];
}