HookResult enum

The result of a Hooks call.

Inheritance

Values

clean → const HookResult

All is ok, nothing was modified.

const HookResult(0)
hasChanges → const HookResult

Files had to be fixed up, but all succeeded and only fully staged files were affected.

const HookResult(1)
hasUnstagedChanges → const HookResult

Files had to be fixed up, all succeeded but partially staged files had to be modified.

const HookResult(2)
rejected → const HookResult

At least one hook detected a problem that has to be fixed manually before the commit can be accepted

const HookResult(3)

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
isSuccess bool
Returns a boolean that indicates whether the result should be treated as success or as failure.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Constants

values → const List<HookResult>
A constant List of the values in this enum, in order of their declaration.