mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 12:49:08 -04:00
refactor!: use Oid instead of String for arguments
This commit is contained in:
parent
23787adc3a
commit
1972c6d1ab
39 changed files with 264 additions and 290 deletions
|
@ -45,7 +45,7 @@ class Odb {
|
|||
);
|
||||
}
|
||||
|
||||
/// Returns list of all objects available in the database.
|
||||
/// Returns list of all objects [Oid]s available in the database.
|
||||
///
|
||||
/// Throws a [LibGit2Error] if error occured.
|
||||
List<Oid> get objects => bindings.objects(_odbPointer);
|
||||
|
@ -102,10 +102,10 @@ class OdbObject {
|
|||
/// Pointer to memory address for allocated odbObject object.
|
||||
final Pointer<git_odb_object> _odbObjectPointer;
|
||||
|
||||
/// Returns the OID of an ODB object.
|
||||
/// Returns the [Oid] of an ODB object.
|
||||
///
|
||||
/// This is the OID from which the object was read from.
|
||||
Oid get id => Oid(bindings.objectId(_odbObjectPointer));
|
||||
/// This is the [Oid] from which the object was read from.
|
||||
Oid get oid => Oid(bindings.objectId(_odbObjectPointer));
|
||||
|
||||
/// Returns the type of an ODB object.
|
||||
GitObject get type {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue