Enum Class MergePreventReasonType

java.lang.Object
java.lang.Enum<MergePreventReasonType>
sonia.scm.repository.api.MergePreventReasonType
All Implemented Interfaces:
Serializable, Comparable<MergePreventReasonType>, Constable

public enum MergePreventReasonType extends Enum<MergePreventReasonType>
Since:
3.3.0
  • Enum Constant Details

    • FILE_CONFLICTS

      public static final MergePreventReasonType FILE_CONFLICTS
      File conflicts are the typical reason why merges are not possible. Common examples are: - File added on both branches - File modified on one branch but deleted on the other - File modified on both branches Reference: MergeConflictResult.ConflictTypes
    • EXTERNAL_MERGE_TOOL

      public static final MergePreventReasonType EXTERNAL_MERGE_TOOL
      It is also possible that we cannot perform a merge properly because files would be affected which have to be merged by an external merge tool. For git these merge tools are configured in the .gitattributes file inside the repository.
  • Method Details

    • values

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