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) | 
|---|
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.DiffFindOptionsor- None.- Return type: - Ggit.DiffFindOptionsor- 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.DiffSimilarityMetricor- None.- Return type: - Ggit.DiffSimilarityMetricor- 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_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. 
 
- 
classmethod 
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