Package org.apache.subversion.javahl
Class SVNUtil.DiffOptions
java.lang.Object
org.apache.subversion.javahl.SVNUtil.DiffOptions
- Enclosing class:
- SVNUtil
public static class SVNUtil.DiffOptions extends Object
Options to control the behaviour of the file diff routines.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SVNUtil.DiffOptions.IgnoreSpace
To what extent whitespace should be ignored when comparing lines. -
Field Summary
Fields Modifier and Type Field Description int
contextSize
boolean
ignoreEolStyle
SVNUtil.DiffOptions.IgnoreSpace
ignoreSpace
boolean
showCFunction
-
Constructor Summary
Constructors Constructor Description DiffOptions(SVNUtil.DiffOptions.IgnoreSpace ignoreSpace, boolean ignoreEolStyle, boolean showCFunction)
DiffOptions(SVNUtil.DiffOptions.IgnoreSpace ignoreSpace, boolean ignoreEolStyle, boolean showCFunction, int contextSize)
Like the {@see #DiffOptions(IgnoreSpace,boolean,boolean)}, but with an additional parameter. -
Method Summary
-
Field Details
-
ignoreSpace
-
ignoreEolStyle
public final boolean ignoreEolStyle -
showCFunction
public final boolean showCFunction -
contextSize
public final int contextSize
-
-
Constructor Details
-
DiffOptions
public DiffOptions(SVNUtil.DiffOptions.IgnoreSpace ignoreSpace, boolean ignoreEolStyle, boolean showCFunction)- Parameters:
ignoreSpace
- Whether and how to ignore space differences in the files. The default isSVNUtil.DiffOptions.IgnoreSpace.none
.ignoreEolStyle
- Whether to treat all end-of-line markers the same when comparing lines. The default isfalse
.showCFunction
- Whether the "@@" lines of the unified diff output should include a prefix of the nearest preceding line that starts with a character that might be the initial character of a C language identifier. The default isfalse
.
-
DiffOptions
public DiffOptions(SVNUtil.DiffOptions.IgnoreSpace ignoreSpace, boolean ignoreEolStyle, boolean showCFunction, int contextSize)Like the {@see #DiffOptions(IgnoreSpace,boolean,boolean)}, but with an additional parameter.- Parameters:
contextSize
- If this is greater than 0, then this number of context lines will be used in the generated diff output. Otherwise the legacy compile time default will be used.
-