Package org.eclipse.jgit.diff
Class DiffConfig
java.lang.Object
org.eclipse.jgit.diff.DiffConfig
Keeps track of diff related configuration options.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Permissible values fordiff.renames
. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Config.SectionParser
<DiffConfig> Key forConfig.get(SectionParser)
.private final boolean
private final DiffConfig.RenameDetectionType
private final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the rename detection typeint
Get the rename limitboolean
If prefix should be suppressedboolean
If rename detection is enabledprivate static DiffConfig.RenameDetectionType
parseRenameDetectionType
(String renameString)
-
Field Details
-
KEY
Key forConfig.get(SectionParser)
. -
noPrefix
private final boolean noPrefix -
renameDetectionType
-
renameLimit
private final int renameLimit
-
-
Constructor Details
-
DiffConfig
-
-
Method Details
-
isNoPrefix
public boolean isNoPrefix()If prefix should be suppressed- Returns:
- true if the prefix "a/" and "b/" should be suppressed
-
isRenameDetectionEnabled
public boolean isRenameDetectionEnabled()If rename detection is enabled- Returns:
- true if rename detection is enabled by default
-
getRenameDetectionType
Get the rename detection type- Returns:
- type of rename detection to perform
-
getRenameLimit
public int getRenameLimit()Get the rename limit- Returns:
- limit on number of paths to perform inexact rename detection
-
parseRenameDetectionType
-