Interface ConflictChange


public interface ConflictChange
A minimal subset of a Change describing how a path was changed on one side of a Conflict. For some types of changes, a source path will also be included.

Note: The path in the repository for which the Conflict happened may be either the getPath() or the getSrcPath().

  • Method Details

    • getPath

      @Nonnull Path getPath()
      Retrieves the path that was changed or, for copies and moves/renames, the path after the change was applied.
      Returns:
      the changed path or, for moves/renames, the path after the change
    • getSrcPath

      @Nullable Path getSrcPath()
      For certain types of changes, retrieves the path prior to the change.

      Copies and moves/renames should attempt to provide a source path. However, due to the vagaries of source control, it is possible they will be unable to. Callers should not assume this path will be provided even for copies, moves or renames.

      Returns:
      the path prior to the change
    • getType

      @Nonnull ChangeType getType()
      Retrieves the type of change that was made on this side of the conflict.
      Returns:
      the change type