Ggit.MergeOptions

Fields

None

Methods

class

new ()

copy ()

free ()

get_file_favor ()

get_file_flags ()

get_flags ()

get_rename_threshold ()

get_similarity_metric ()

get_target_limit ()

set_file_favor (file_favor)

set_file_flags (file_flags)

set_flags (flags)

set_rename_threshold (rename_threshold)

set_similarity_metric (metric)

set_target_limit (target_limit)

Details

class Ggit.MergeOptions

Represents the options used when merging.

classmethod new()
Returns:

a newly allocated Ggit.MergeOptions.

Return type:

Ggit.MergeOptions

Creates a new Ggit.MergeOptions.

copy()
Returns:

a newly allocated Ggit.MergeOptions or None.

Return type:

Ggit.MergeOptions or None

Copies self into a newly allocated Ggit.MergeOptions.

free()

Frees self.

get_file_favor()
Returns:

the file favor.

Return type:

Ggit.MergeFileFavor

Get flags for handling conflicting content.

get_file_flags()
Returns:

the file merging flags.

Return type:

Ggit.MergeFileFlags

Get file merging flags.

get_flags()
Returns:

the flags.

Return type:

Ggit.MergeFlags

Get the tree flags to use for merging.

get_rename_threshold()
Returns:

the rename threshold.

Return type:

int

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:

Ggit.DiffSimilarityMetric or None

Get the similarity metric.

get_target_limit()
Returns:

the target limit.

Return type:

int

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.