isSuccess property
bool
isSuccess
Returns a boolean that indicates whether the result should be treated as success or as failure.
The following table lists how result codes are interpreted:
Code | Success |
---|---|
HookResult.clean | true |
HookResult.hasChanges | true |
HookResult.hasUnstagedChanges | false |
HookResult.rejected | false |
Implementation
bool get isSuccess => index <= HookResult.hasChanges.index;