Ggit.MergeOptions¶
Fields¶
None
Methods¶
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class Ggit.MergeOptions¶
Represents the options used when merging.
- classmethod new()¶
- Returns:
a newly allocated
Ggit.MergeOptions
.- Return type:
Creates a new
Ggit.MergeOptions
.
- copy()¶
- Returns:
a newly allocated
Ggit.MergeOptions
orNone
.- Return type:
Copies self into a newly allocated
Ggit.MergeOptions
.
- free()¶
Frees self.
- get_file_favor()¶
- Returns:
the file favor.
- Return type:
Get flags for handling conflicting content.
- get_file_flags()¶
- Returns:
the file merging flags.
- Return type:
Get file merging flags.
- get_flags()¶
- Returns:
the flags.
- Return type:
Get the tree flags to use for merging.
- get_rename_threshold()¶
- Returns:
the rename threshold.
- Return type:
Get the rename threshold (defaults to 50). If %GGIT_MERGE_TREE_FIND_RENAMES is enabled, added files will be compared with deleted files to determine their similarity. Files that are more similar than the rename threshold (percentage-wise) will be treated as a rename.
- get_similarity_metric()¶
- Returns:
the similarity metric, or
None
.- Return type:
Get the similarity metric.
- get_target_limit()¶
- Returns:
the target limit.
- Return type:
Get the maximum number of similarity sources to examine for renames (defaults to 200). If the number of rename candidates (add / delete pairs) is greater than this value, inexact rename detection is aborted.
- set_file_favor(file_favor)¶
- Parameters:
file_favor (
Ggit.MergeFileFavor
) – the file favor.
Set flags for handling conflicting content.
- set_file_flags(file_flags)¶
- Parameters:
file_flags (
Ggit.MergeFileFlags
) – the file flags.
Set file merging flags.
- set_flags(flags)¶
- Parameters:
flags (
Ggit.MergeFlags
) –
- set_rename_threshold(rename_threshold)¶
- Parameters:
rename_threshold (
int
) – similarity to consider a file renamed.
Set the rename threshold (defaults to 50). If %GGIT_MERGE_TREE_FIND_RENAMES is enabled, added files will be compared with deleted files to determine their similarity. Files that are more similar than the rename threshold (percentage-wise) will be treated as a rename.
- set_similarity_metric(metric)¶
- Parameters:
metric (
Ggit.DiffSimilarityMetric
) – a #GgitSimilarityMetric.
Set the similarity metric, or
None
for the default similarity metric.
- set_target_limit(target_limit)¶
- Parameters:
target_limit (
int
) – maximum similarity source to examine for renames.
Set the maximum number of similarity sources to examine for renames (defaults to 200). If the number of rename candidates (add / delete pairs) is greater than this value, inexact rename detection is aborted.