Enum Class TreePreflight

java.lang.Object
java.lang.Enum<TreePreflight>
network.ike.plugin.ws.TreePreflight
All Implemented Interfaces:
Serializable, Comparable<TreePreflight>, Constable

public enum TreePreflight extends Enum<TreePreflight>
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.
  • Enum Constant Details

    • REQUIRE_UNMODIFIED

      public static final TreePreflight 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-uncommitted flag overrides this for the documented roll-forward and fold-into-feature cases.
    • WARN

      public static final TreePreflight WARN
      The goal evaluates the working-tree-clean condition and logs it, but does not block — the read-only *-draft preview pattern (warnIfFailed).
    • IGNORE

      public static final TreePreflight IGNORE
      Uncommitted changes are expected input or irrelevant; the goal does not gate on them. Covers ws: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

      public static TreePreflight[] 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

      public static TreePreflight valueOf(String name)
      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 name
      NullPointerException - if the argument is null