Package org.eclipse.jgit.diff
Class DiffConfig
- java.lang.Object
-
- org.eclipse.jgit.diff.DiffConfig
-
public class DiffConfig extends java.lang.Object
Keeps track of diff related configuration options.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DiffConfig.RenameDetectionType
Permissible values fordiff.renames
.
-
Field Summary
Fields Modifier and Type Field Description static Config.SectionParser<DiffConfig>
KEY
Key forConfig.get(SectionParser)
.private boolean
noPrefix
private DiffConfig.RenameDetectionType
renameDetectionType
private int
renameLimit
-
Constructor Summary
Constructors Modifier Constructor Description private
DiffConfig(Config rc)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DiffConfig.RenameDetectionType
getRenameDetectionType()
Get the rename detection typeint
getRenameLimit()
Get the rename limitboolean
isNoPrefix()
If prefix should be suppressedboolean
isRenameDetectionEnabled()
If rename detection is enabledprivate static DiffConfig.RenameDetectionType
parseRenameDetectionType(java.lang.String renameString)
-
-
-
Field Detail
-
KEY
public static final Config.SectionParser<DiffConfig> KEY
Key forConfig.get(SectionParser)
.
-
noPrefix
private final boolean noPrefix
-
renameDetectionType
private final DiffConfig.RenameDetectionType renameDetectionType
-
renameLimit
private final int renameLimit
-
-
Constructor Detail
-
DiffConfig
private DiffConfig(Config rc)
-
-
Method Detail
-
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
public DiffConfig.RenameDetectionType 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
private static DiffConfig.RenameDetectionType parseRenameDetectionType(java.lang.String renameString)
-
-