Ggit.DiffFindOptions

g GObject.Object GObject.Object Ggit.DiffFindOptions Ggit.DiffFindOptions GObject.Object->Ggit.DiffFindOptions

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

get_copy_threshold ()

get_flags ()

get_metric ()

get_rename_from_rewrite_threshold ()

get_rename_limit ()

get_rename_threshold ()

set_copy_threshold (threshold)

set_flags (flags)

set_metric (metric)

set_rename_from_rewrite_threshold (threshold)

set_rename_limit (limit)

set_rename_threshold (threshold)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

copy-threshold

int

r/w

Copy threshold

flags

Ggit.DiffFindFlags

r/w

Flags

metric

Ggit.DiffSimilarityMetric

r/w

Metric

rename-from-rewrite-threshold

int

r/w

Rename from rewrite threshold

rename-limit

int

r/w

Rename limit

rename-threshold

int

r/w

Rename threshold

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

GObject.Object

r

Class Details

class Ggit.DiffFindOptions(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Ggit.DiffFindOptionsClass

Represents options for finding diff similarity.

classmethod new()
Returns:

a newly allocated Ggit.DiffFindOptions or None.

Return type:

Ggit.DiffFindOptions or None

Creates a new Ggit.DiffFindOptions.

get_copy_threshold()
Returns:

the copy threshold.

Return type:

int

Get the find options copy threshold.

get_flags()
Returns:

the find options flags.

Return type:

Ggit.DiffFindFlags

Get the find options flags.

get_metric()
Returns:

a Ggit.DiffSimilarityMetric or None.

Return type:

Ggit.DiffSimilarityMetric or None

Get the find options metric.

get_rename_from_rewrite_threshold()
Returns:

the rename from rewrite threshold.

Return type:

int

Get the find options rename from rewrite threshold.

get_rename_limit()
Returns:

the rename limit.

Return type:

int

Get the find options rename limit.

get_rename_threshold()
Returns:

the rename threshold.

Return type:

int

Get the find options rename threshold.

set_copy_threshold(threshold)
Parameters:

threshold (int) – the threshold.

Set the find options copy threshold.

set_flags(flags)
Parameters:

flags (Ggit.DiffFindFlags) – a Ggit.DiffFindFlags.

Set the find options flags.

set_metric(metric)
Parameters:

metric (Ggit.DiffSimilarityMetric) – a Ggit.DiffSimilarityMetric.

Set the find options metric.

set_rename_from_rewrite_threshold(threshold)
Parameters:

threshold (int) – the threshold.

Set the find options rename from rewrite threshold.

set_rename_limit(limit)
Parameters:

limit (int) – the limit.

Set the find options rename limit.

set_rename_threshold(threshold)
Parameters:

threshold (int) – the threshold.

Set the find options rename threshold.

Property Details

Ggit.DiffFindOptions.props.copy_threshold
Name:

copy-threshold

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

Copy threshold

Ggit.DiffFindOptions.props.flags
Name:

flags

Type:

Ggit.DiffFindFlags

Default Value:

Ggit.DiffFindFlags.FIND_BY_CONFIG | Ggit.DiffFindFlags.FIND_IGNORE_LEADING_WHITESPACE

Flags:

READABLE, WRITABLE

The diff option flags.

Ggit.DiffFindOptions.props.metric
Name:

metric

Type:

Ggit.DiffSimilarityMetric

Default Value:

None

Flags:

READABLE, WRITABLE

Metric

Ggit.DiffFindOptions.props.rename_from_rewrite_threshold
Name:

rename-from-rewrite-threshold

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

Rename from rewrite threshold

Ggit.DiffFindOptions.props.rename_limit
Name:

rename-limit

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

Rename limit

Ggit.DiffFindOptions.props.rename_threshold
Name:

rename-threshold

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

Rename threshold