Package com.atlassian.bitbucket.content
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 Summary
Modifier and TypeMethodDescriptiongetPath()
Retrieves the path that waschanged
or, forcopies
andmoves/renames
, the path after the change was applied.For certaintypes of changes
, retrieves the path prior to the change.getType()
Retrieves thetype of change
that was made on this side of the conflict.
-
Method Details
-
getPath
Retrieves the path that waschanged
or, forcopies
andmoves/renames
, the path after the change was applied.- Returns:
- the changed path or, for
moves/renames
, the path after the change
-
getSrcPath
For certaintypes of changes
, retrieves the path prior to the change.Copies
andmoves/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
Retrieves thetype of change
that was made on this side of the conflict.- Returns:
- the change type
-