GitDirectoryObjectStore class

Objects in a git directory: loose objects and packs with their indexes.

Inheritance

Constructors

GitDirectoryObjectStore(String gitDir)

Properties

gitDir → String
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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 object and 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-pack produces.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited