GitObjectId class
The 20-byte SHA-1 that names a git object.
- Implemented types
Constructors
-
GitObjectId.fromBytes(List<
int> bytes) -
The id from its 20 raw bytes.
factory
- GitObjectId.fromHex(String hex)
-
The id from its 40 hexadecimal digits.
factory
-
GitObjectId.hash(String typeName, List<
int> content) -
The id of an object of
typeNameholdingcontent: SHA-1 over"<type> <size>\0<content>".factory
Properties
Methods
-
compareTo(
GitObjectId other) → int -
Compares this object to another object.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Properties
- zero → GitObjectId
-
All zeros: what git writes for "no object" in a ref update.
final
Constants
- byteLength → const int