Class MergedRenameGitMergeConflict

All Implemented Interfaces:
GitMergeConflict

public class MergedRenameGitMergeConflict extends AbstractPathGitMergeConflict
Describes a conflict where two different files are renamed to the same destination.

Starting in Git 2.21, when two different files are renamed to the same destination, git merge merges their contents in-place and stores the result in the renamed file.

Prior to Git 2.21, git merge stored the two original files in separate temporary files without trying to merge them, and ConvergentRenameGitMergeConflict is used instead of this conflict type.

Since:
6.2
See Also:
  • Constructor Details

    • MergedRenameGitMergeConflict

      public MergedRenameGitMergeConflict(@Nonnull String message, @Nonnull String path, @Nonnull String ourSrcPath, @Nonnull String theirSrcPath)
  • Method Details

    • accept

      public void accept(@Nonnull GitMergeConflictVisitor visitor)
    • getOurSrcPath

      @Nonnull public String getOurSrcPath()
    • getTheirSrcPath

      @Nonnull public String getTheirSrcPath()