GitRefStore class abstract

Where refs live: full names such as refs/heads/main mapped to ids.

Implementers

Constructors

GitRefStore()
const

Properties

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

Methods

delete(String name) → Future<void>
Removes name; removing an absent ref changes nothing.
list([String prefix = 'refs/']) → Future<Map<String, GitObjectId>>
Every ref whose name starts with prefix.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read(String name) → Future<GitObjectId?>
The id name points at, or null when there is no such ref.
toString() → String
A string representation of this object.
inherited
write(String name, GitObjectId id, {GitObjectId? expected}) → Future<void>
Points name at id. With expected (use GitObjectId.zero for "must not exist yet") the update is refused with a GitRefConflict unless the ref is there now.

Operators

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