toTreeModifications
public List<TreeModification> toTreeModifications(org.eclipse.jgit.lib.Repository repository,
ProjectState projectState,
org.eclipse.jgit.lib.ObjectId patchSetCommitId,
List<FixReplacement> fixReplacements)
throws ResourceNotFoundException,
IOException,
ResourceConflictException
Transforms the given FixReplacement
s into TreeModification
s.
- Parameters:
repository
- the affected Git repository
projectState
- the affected project
patchSetCommitId
- the patch set which should be modified
fixReplacements
- the replacements which should be applied
- Returns:
- a list of
TreeModification
s representing the given replacements
- Throws:
ResourceNotFoundException
- if a file to which one of the replacements refers doesn't
exist
ResourceConflictException
- if the replacements can't be transformed into TreeModification
s
IOException