Enum Class AuthoredCommit

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

public enum AuthoredCommit extends Enum<AuthoredCommit>
How a goal commits the tracked changes it itself authors — one half of a goal's declared GoalBehavior (IKE-Network/ike-issues#780).

The cardinal rule across every value: a goal never runs git add -A. It commits only the paths it authored, each gated on having been unmodified before the goal ran (via GoalAuthoredChanges), so a caller's concurrent WIP, a -DstagedOnly subset, or work syncing in from the other machine over Syncthing is never swept in (cf. IKE-Network/ike-issues#358, #774).

  • Enum Constant Details

    • IN_ISOLATION

      public static final AuthoredCommit IN_ISOLATION
      Auto-commit, in isolation, exactly the paths this goal authored that were unmodified before it ran. Uses a standard <type>: <summary> message with a Refs: trailer.
    • DEFER_TO_CALLER

      public static final AuthoredCommit DEFER_TO_CALLER
      The goal writes its paths but leaves the commit to the top-level goal that invoked it (e.g. align run as a sub-step of scaffold or feature-start). A standalone invocation of the same goal commits IN_ISOLATION.
    • IS_THE_COMMIT

      public static final AuthoredCommit IS_THE_COMMIT
      Committing is the goal's whole purpose (ws:commit-publish); it honors -DstagedOnly and consumes a working tree with uncommitted changes.
    • NONE

      public static final AuthoredCommit NONE
      The goal authors no tracked commit — read-only goals, and VCS-state goals (push/pull/sync) that move refs but write no tracked files.
  • Method Details

    • values

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