public class ChangeFileContentModification extends Object implements TreeModification
TreeModification which changes the content of a file.| Constructor and Description |
|---|
ChangeFileContentModification(String filePath,
RawInput newContent) |
| Modifier and Type | Method and Description |
|---|---|
List<org.eclipse.jgit.dircache.DirCacheEditor.PathEdit> |
getPathEdits(org.eclipse.jgit.lib.Repository repository,
org.eclipse.jgit.revwalk.RevCommit baseCommit)
Returns a list of
PathEdits which are necessary in order to achieve the desired
modification of the Git tree. |
public List<org.eclipse.jgit.dircache.DirCacheEditor.PathEdit> getPathEdits(org.eclipse.jgit.lib.Repository repository, org.eclipse.jgit.revwalk.RevCommit baseCommit)
TreeModificationPathEdits which are necessary in order to achieve the desired
modification of the Git tree. The order of the PathEdits can be crucial and hence
shouldn't be changed.getPathEdits in interface TreeModificationrepository - the affected Git repositorybaseCommit - the commit to whose tree this modification is appliedPathEdits