ContentMergeStrategy.java

  1. /*
  2.  * Copyright (C) 2021, Thomas Wolf <thomas.wolf@paranor.ch> and others
  3.  *
  4.  * This program and the accompanying materials are made available under the
  5.  * terms of the Eclipse Distribution License v. 1.0 which is available at
  6.  * https://www.eclipse.org/org/documents/edl-v10.php.
  7.  *
  8.  * SPDX-License-Identifier: BSD-3-Clause
  9.  */
  10. package org.eclipse.jgit.merge;

  11. /**
  12.  * How to handle content conflicts.
  13.  *
  14.  * @since 5.12
  15.  */
  16. public enum ContentMergeStrategy {

  17.     /** Produce a conflict. */
  18.     CONFLICT,

  19.     /** Resolve the conflict hunk using the ours version. */
  20.     OURS,

  21.     /** Resolve the conflict hunk using the theirs version. */
  22.     THEIRS
  23. }