Top Description Inners Fields Constructors Methods
org.eclipse.jgit.diff

public Class DiffConfig

extends Object
Class Inheritance
Imports
java.text.MessageFormat, org.eclipse.jgit.internal.JGitText, org.eclipse.jgit.lib.Config, .Config.SectionParser, .ConfigConstants, org.eclipse.jgit.util.StringUtils

Keeps track of diff related configuration options.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum
DiffConfig.RenameDetectionType

Permissible values for diff.renames.

Field Summary

Modifier and TypeField and Description
public static final Config.SectionParser<DiffConfig>
private final boolean
private final DiffConfig.RenameDetectionType
private final int

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public DiffConfig.RenameDetectionType

Returns:

type of rename detection to perform
getRenameDetectionType
()

Get the rename detection type

public int

Returns:

limit on number of paths to perform inexact rename detection
getRenameLimit
()

Get the rename limit

public boolean

Returns:

true if the prefix "a/" and "b/" should be suppressed
isNoPrefix
()

If prefix should be suppressed

public boolean

Returns:

true if rename detection is enabled by default
isRenameDetectionEnabled
()

If rename detection is enabled

private static DiffConfig.RenameDetectionType
parseRenameDetectionType(final String renameString)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

KEYback to summary
public static final Config.SectionParser<DiffConfig> KEY

Key for Config#get(SectionParser).

noPrefixback to summary
private final boolean noPrefix
renameDetectionTypeback to summary
private final DiffConfig.RenameDetectionType renameDetectionType
renameLimitback to summary
private final int renameLimit

Constructor Detail

DiffConfigback to summary
private DiffConfig(Config rc)

Method Detail

getRenameDetectionTypeback to summary
public DiffConfig.RenameDetectionType getRenameDetectionType()

Get the rename detection type

Returns:DiffConfig.RenameDetectionType

type of rename detection to perform

getRenameLimitback to summary
public int getRenameLimit()

Get the rename limit

Returns:int

limit on number of paths to perform inexact rename detection

isNoPrefixback to summary
public boolean isNoPrefix()

If prefix should be suppressed

Returns:boolean

true if the prefix "a/" and "b/" should be suppressed

isRenameDetectionEnabledback to summary
public boolean isRenameDetectionEnabled()

If rename detection is enabled

Returns:boolean

true if rename detection is enabled by default

parseRenameDetectionTypeback to summary
private static DiffConfig.RenameDetectionType parseRenameDetectionType(final String renameString)
org.eclipse.jgit.diff back to summary

public final Enum DiffConfig.RenameDetectionType

extends Enum<DiffConfig.RenameDetectionType>
Class Inheritance

Permissible values for diff.renames.

Field Summary

Modifier and TypeField and Description
public static final DiffConfig.RenameDetectionType
COPY

Copies should be detected too.

public static final DiffConfig.RenameDetectionType
FALSE

Rename detection is disabled.

public static final DiffConfig.RenameDetectionType
TRUE

Rename detection is enabled.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static DiffConfig.RenameDetectionType
public static DiffConfig.RenameDetectionType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

COPYback to summary
public static final DiffConfig.RenameDetectionType COPY

Copies should be detected too.

FALSEback to summary
public static final DiffConfig.RenameDetectionType FALSE

Rename detection is disabled.

TRUEback to summary
public static final DiffConfig.RenameDetectionType TRUE

Rename detection is enabled.

Constructor Detail

RenameDetectionTypeback to summary
private RenameDetectionType()

Method Detail

valueOfback to summary
public static DiffConfig.RenameDetectionType valueOf(String name)
valuesback to summary
public static DiffConfig.RenameDetectionType[] values()