Class ConvergentRenameGitMergeConflict

All Implemented Interfaces:
GitMergeConflict

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

Prior to Git 2.21, when different files are renamed to the same destination, git merge would not write anything to the renamed file. Instead, it would rename "our" file to one temporary file and "their" file to another temporary file.

Starting in Git 2.21, git merge's handling has changed and MergedRenameGitMergeConflict replaces this conflict type.

See Also:
  • Constructor Details

    • ConvergentRenameGitMergeConflict

      public ConvergentRenameGitMergeConflict(@Nonnull String message, @Nonnull String path, @Nonnull String ourSrcPath, @Nonnull String ourTmpPath, @Nonnull String theirSrcPath, @Nonnull String theirTmpPath)
  • Method Details

    • accept

      public void accept(@Nonnull GitMergeConflictVisitor visitor)
    • getOurSrcPath

      @Nonnull public String getOurSrcPath()
    • getOurTmpPath

      @Nonnull public String getOurTmpPath()
    • getTheirSrcPath

      @Nonnull public String getTheirSrcPath()
    • getTheirTmpPath

      @Nonnull public String getTheirTmpPath()