Enum Class AuthoredCommit
- All Implemented Interfaces:
Serializable, Comparable<AuthoredCommit>, Constable
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).
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe goal writes its paths but leaves the commit to the top-level goal that invoked it (e.g.Auto-commit, in isolation, exactly the paths this goal authored that were unmodified before it ran.Committing is the goal's whole purpose (ws:commit-publish); it honors-DstagedOnlyand consumes a working tree with uncommitted changes.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 Summary
Modifier and TypeMethodDescriptionstatic AuthoredCommitReturns the enum constant of this class with the specified name.static AuthoredCommit[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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 aRefs:trailer. -
DEFER_TO_CALLER
The goal writes its paths but leaves the commit to the top-level goal that invoked it (e.g.alignrun as a sub-step ofscaffoldorfeature-start). A standalone invocation of the same goal commitsIN_ISOLATION. -
IS_THE_COMMIT
Committing is the goal's whole purpose (ws:commit-publish); it honors-DstagedOnlyand consumes a working tree with uncommitted changes. -
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
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
-