mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 04:39:07 -04:00
feat(repository)!: add more aliases for api methods
BREAKING CHANGE: Make repository entry point for most operations
This commit is contained in:
parent
9205a3ad82
commit
3a0fa75929
51 changed files with 1380 additions and 1062 deletions
|
@ -8,18 +8,16 @@ class Blob {
|
|||
/// Initializes a new instance of [Blob] class from provided pointer to
|
||||
/// blob object in memory.
|
||||
///
|
||||
/// Should be freed with `free()` to release allocated memory.
|
||||
/// Should be freed to release allocated memory.
|
||||
Blob(this._blobPointer);
|
||||
|
||||
/// Initializes a new instance of [Blob] class from provided
|
||||
/// [Repository] object and [sha] hex string.
|
||||
/// Lookups a blob object for provided [id] in a [repo]sitory.
|
||||
///
|
||||
/// Should be freed with `free()` to release allocated memory.
|
||||
Blob.lookup({required Repository repo, required String sha}) {
|
||||
final oid = Oid.fromSHA(repo: repo, sha: sha);
|
||||
/// Should be freed to release allocated memory.
|
||||
Blob.lookup({required Repository repo, required Oid id}) {
|
||||
_blobPointer = bindings.lookup(
|
||||
repoPointer: repo.pointer,
|
||||
oidPointer: oid.pointer,
|
||||
oidPointer: id.pointer,
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue