Enum Class TreePreflight
- All Implemented Interfaces:
Serializable, Comparable<TreePreflight>, Constable
How a
ws:/ike: goal treats the git working tree's
uncommitted state as a precondition — one half of a goal's declared
GoalBehavior. See IKE-Network/ike-issues#780 for the taxonomy and
the rationale for rejecting a blanket "every goal requires an unmodified
tree" rule.-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUncommitted changes are expected input or irrelevant; the goal does not gate on them.The goal refuses to run unless the working tree is unmodified, so its diff is attributable solely to the goal and is reviewable/recoverable.The goal evaluates the working-tree-clean condition and logs it, but does not block — the read-only*-draftpreview pattern (warnIfFailed). -
Method Summary
Modifier and TypeMethodDescriptionstatic TreePreflightReturns the enum constant of this class with the specified name.static TreePreflight[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
REQUIRE_UNMODIFIED
The goal refuses to run unless the working tree is unmodified, so its diff is attributable solely to the goal and is reviewable/recoverable. The-Dallow-uncommittedflag overrides this for the documented roll-forward and fold-into-feature cases. -
WARN
The goal evaluates the working-tree-clean condition and logs it, but does not block — the read-only*-draftpreview pattern (warnIfFailed). -
IGNORE
Uncommitted changes are expected input or irrelevant; the goal does not gate on them. Coversws:commit(consumes them), the sync goals (which auto-stash in-flight Syncthing WIP rather than refuse), the roll-forward release path, and the read-only goals.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-