Ggit.DiffSimilarityMetric¶
Fields¶
None
Methods¶
class |
|
|
|
|
Details¶
- class Ggit.DiffSimilarityMetric¶
Represents a similarity metric.
- classmethod new(file_signature, buffer_signature, free_signature, similarity, *user_data)¶
- Parameters:
file_signature (
Ggit.DiffSimilarityMetricFileSignatureCallback
) – a #GgitDiffSimilarityMetricFileSignature.buffer_signature (
Ggit.DiffSimilarityMetricBufferSignatureCallback
) – a #GgitDiffSimilarityMetricBufferSignature.free_signature (
Ggit.DiffSimilarityMetricFreeSignatureCallback
) – a #GgitDiffSimilarityMetricFreeSignature.similarity (
Ggit.DiffSimilarityMetricSimilarityCallback
) – a #GgitDiffSimilarityMetricSimilarity.user_data (
object
orNone
) – passed as user_data to the previous parameters.
- Returns:
a newly allocated
Ggit.DiffSimilarityMetric
.- Return type:
Creates a new
Ggit.DiffSimilarityMetric
.
- copy()¶
- Returns:
a newly allocated
Ggit.DiffSimilarityMetric
orNone
.- Return type:
Copies self into a newly allocated
Ggit.DiffSimilarityMetric
.
- free()¶
Frees self.