mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 04:39:07 -04:00
feat(index): add binding and API method for git_index_new (#33)
This commit is contained in:
parent
02ac220d46
commit
cc78e7945f
3 changed files with 24 additions and 0 deletions
|
@ -14,6 +14,14 @@ class Index with IterableMixin<IndexEntry> {
|
|||
/// **IMPORTANT**: Should be freed to release allocated memory.
|
||||
const Index(this._indexPointer);
|
||||
|
||||
/// Creates an in-memory index object.
|
||||
///
|
||||
/// This index object cannot be read/written to the filesystem, but may be
|
||||
/// used to perform in-memory index operations.
|
||||
///
|
||||
/// **IMPORTANT**: Should be freed to release allocated memory.
|
||||
Index.newInMemory() : _indexPointer = bindings.newInMemory();
|
||||
|
||||
final Pointer<git_index> _indexPointer;
|
||||
|
||||
/// Pointer to memory address for allocated index object.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue