GitDirectoryObjectStore class
Objects in a git directory: loose objects and packs with their indexes.
- Inheritance
-
- Object
- GitObjectStore
- GitDirectoryObjectStore
Constructors
- GitDirectoryObjectStore(String gitDir)
Properties
Methods
-
contains(
GitObjectId id) → Future< bool> -
Whether this store has
id.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
read(
GitObjectId id) → Future< GitObject?> -
The object with
id, or null when this store does not have it.override -
toString(
) → String -
A string representation of this object.
inherited
-
write(
GitObject object) → Future< GitObjectId> -
Stores
objectand returns its id. Storing an object already present changes nothing.override -
writeAll(
Iterable< GitObject> objects) → Future<void> -
Stores every object of
objects. A store may write them as one unit — a directory store writes one pack — so prefer this for many objects.inherited -
writePack(
Uint8List pack) → Future< void> -
Keeps the pack as it arrived, with the index this library builds beside
it — the layout
git index-packproduces.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited