GitOid class Getting started
A git object name: a 40-character (SHA-1) or 64-character (SHA-256) hexadecimal string.
Values are validated at construction and normalized to lower case. A complete object name is required: an abbreviation, a reference name and a revision expression are all refused, so a value taken from outside is never handed to git unvalidated.
Constructors
- GitOid.parse(String hex)
-
Parses
hexinto a GitOid.factory
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- isSha256 → bool
-
Whether this object name belongs to a SHA-256 repository.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → String
-
Normalized (lower case) hexadecimal form of the object name.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
short(
[int length = 7]) → String - Short (abbreviated) form used in human-facing output; git's own default abbreviation is 7 characters.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override