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 typeName holding content: SHA-1 over "<type> <size>\0<content>".
factory

Properties

bytes → Uint8List
final
hashCode → int
The hash code for this object.
no setteroverride
hex → String
no setter
isZero → bool
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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