Package sonia.scm.repository.api
Class DiffResultCommandBuilder
java.lang.Object
sonia.scm.repository.api.DiffResultCommandBuilder
-
Method Summary
Modifier and TypeMethodDescriptionReturns the content of the difference as parsed objects.setAncestorChangeset
(String revision) Compute the incoming changes of the branch set withsetRevision(String)
in respect to the changeset given here.setIgnoreWhitespace
(IgnoreWhitespaceLevel ignoreWhitespace) Sets a limit for the file diff entries that will be created.Sets an offset for the first file diff entry that will be created in the result.Show the difference only for the given path.setRevision
(String revision) Show the difference only for the given revision or (usingsetAncestorChangeset(String)
) between this and another revision.
-
Method Details
-
setOffset
Sets an offset for the first file diff entry that will be created in the result. If there are fewer entries than the given offset, an empty result will be created.- Parameters:
offset
- The number of the first diff file entry that will be added to the result.- Returns:
- This builder instance.
- Since:
- 2.15.0
-
setLimit
Sets a limit for the file diff entries that will be created.- Parameters:
limit
- The maximum number of file diff entries that will be created in the result.- Returns:
- This builder instance.
- Since:
- 2.15.0
-
getDiffResult
Returns the content of the difference as parsed objects.- Throws:
IOException
-
setAncestorChangeset
Compute the incoming changes of the branch set withsetRevision(String)
in respect to the changeset given here. In other words: What changes would be new to the ancestor changeset given here when the branch would be merged into it. Requires featureFeature.INCOMING_REVISION
!- Returns:
this
-
setPath
Show the difference only for the given path.- Parameters:
path
- path for difference- Returns:
this
-
setRevision
Show the difference only for the given revision or (usingsetAncestorChangeset(String)
) between this and another revision.- Parameters:
revision
- revision for difference- Returns:
this
-
setIgnoreWhitespace
-